suEXEC

Joy Methew ml4joy at gmail.com
Tue Aug 12 12:59:43 UTC 2008


i have told already i am not using both together.

On Tue, Aug 12, 2008 at 5:41 PM, Broekman, Maarten <Maarten.Broekman at fmr.com
> wrote:

> By having the two virtual hosts, Apache will use the first matching
> entry.  This means that it will never use the second virtual host entry.
> You either need to comment out the first entry or change it.
>
> Also, check the Apache documentation (http://httpd.apache.org/docs/).
>
> Maarten
>
>
> -----Original Message-----
> From: redhat-list-bounces at redhat.com
> [mailto:redhat-list-bounces at redhat.com] On Behalf Of Joy Methew
> Sent: Tuesday, August 12, 2008 8:08 AM
> To: General Red Hat Linux discussion list
> Subject: suEXEC
>
> scrpit.sh.....
>
> #!/bin/bash
> echo Content-type: text/html
> echo
> whoami
> echo '<br><br>'
> id || echo "Will not work with SELinux."
> echo '<br>'
>
> first virtual hosting is showing username cgiuser but second virtual
> hostinf
> is blank answer.
> i waan it show username root.
> i m not doing this virtual hosting together.
> this virtual hosting only for testing purpose.
> chown cgiuser.cgiuser /var/www/virtual/cgi-bin/
> chmod 755 /var/www/virtual/cgi-bin/
> chmod 755 /var/www/virtual/cgi-bin/script.sh
>
> <VirtualHost 192.168.1.4:80>
>     DocumentRoot /var/www/html
>     ServerName 192.168.1.4
>     ScriptAlias /cgi-bin/ /var/www/virtual/cgi-bin/
>     SuexecUserGroup cgiuser cgiuser
> </VirtualHost>
>
> <VirtualHost 192.168.1.4:80>
>     DocumentRoot /var/www/html
>     ServerName 192.168.1.4
>     ScriptAlias /root-cgi-bin/ /var/www/virtual/root-cgi-bin/
>     SuexecUserGroup root root
> </VirtualHost>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



More information about the redhat-list mailing list