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@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list