t42ucsdedu
asked on
virtual hosting out of cgi-bin
hi,
i have registered the "bob.mycompany.ucla.edu" as an alias of mycompany.ucla.edu. And i would like it to point "bob.mycompany.ucla.edu to /web/cgi-bin/bob/ on my server.
<VirtualHost *:80>
ServerName bob.mycompany.ucla.edu
ServerAlias bob.mycompany
ScriptAlias /cgi-bin/ "/web/cgi-bin/bob/"
DocumentRoot /web/cgi-bin/bob/
ErrorLog logs/error_log.bob.mycompa ny
CustomLog logs/access_log.bob.mycomp any common
</VirtualHost>
when i point my browser to http://bob.mycompany.ucla.edu, it just goes to mycompany.ucla.edu and not to the /web/cgi-bin/bob/.
thanks for your help,
K
i have registered the "bob.mycompany.ucla.edu" as an alias of mycompany.ucla.edu. And i would like it to point "bob.mycompany.ucla.edu to /web/cgi-bin/bob/ on my server.
<VirtualHost *:80>
ServerName bob.mycompany.ucla.edu
ServerAlias bob.mycompany
ScriptAlias /cgi-bin/ "/web/cgi-bin/bob/"
DocumentRoot /web/cgi-bin/bob/
ErrorLog logs/error_log.bob.mycompa
CustomLog logs/access_log.bob.mycomp
</VirtualHost>
when i point my browser to http://bob.mycompany.ucla.edu, it just goes to mycompany.ucla.edu and not to the /web/cgi-bin/bob/.
thanks for your help,
K
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
RewriteEngine On
RewriteCond %{REQUEST_URI} ^[/]*$
RewriteRule ^(.*) /cgi-bin/your.cgi [L]
RewriteCond %{REQUEST_URI} ^[/]*$
RewriteRule ^(.*) /cgi-bin/your.cgi [L]
ASKER
<VirtualHost *:80>
ServerName bob.mycompany.ucla.edu
ServerAlias bob.mycompany
ScriptAlias /cgi-bin/ "/web/cgi-bin/bob/"
DocumentRoot /web/cgi-bin/bob/
RewriteEngine On
RewriteCond %{REQUEST_URI} ^[/]*$
RewriteRule ^(.*) /cgi-bin/bob/index.cgi [L]
ErrorLog logs/error_log.bob.mycompa ny
CustomLog logs/access_log.bob.mycomp any common
</VirtualHost>
I tried this but did not work,
K
ServerName bob.mycompany.ucla.edu
ServerAlias bob.mycompany
ScriptAlias /cgi-bin/ "/web/cgi-bin/bob/"
DocumentRoot /web/cgi-bin/bob/
RewriteEngine On
RewriteCond %{REQUEST_URI} ^[/]*$
RewriteRule ^(.*) /cgi-bin/bob/index.cgi [L]
ErrorLog logs/error_log.bob.mycompa
CustomLog logs/access_log.bob.mycomp
</VirtualHost>
I tried this but did not work,
K
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
K