You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Davide De Nicolo XX (SA/ERI)" <da...@ericsson.com> on 2007/09/10 11:48:49 UTC
[users@httpd] Modify access to directory
Hi all,
I need an information about modifying access to third level domain, I'll
explain it:
I've a virtual server with apache and mydomain.com IP is set to it and
I've a third level domain as webmail.mydomain.com sets to the same IP.
I would like to configure Apache allowing access to openwebmail.
My provider advises me to add this VirtualHost tag, but when I put
http://webmail.mydomain.com in my browser, it's redirect me to
http://vsXXXX.provider.com:8080/cgi-bin/openwebmail/openwebmail.pl
changing so my url address.
<VirtualHost webmail.mydomain.com>
ServerName webmail.mydomain.com
DocumentRoot /home/httpd/docs
DirectoryIndex index.html index.htm index.php openwebmail.pl
RewriteEngine on
RewriteRule ^/$ /openwebmail.pl
RewriteRule (openwebmail.*pl)$
http://vsXXXX.provider.com:8080/cgi-bin/openwebmail/$1
RewriteRule ^/(.*)$ http://vsXXXX.provider.com:8080/openwebmail/$1
</VirtualHost>
Is it possible to change VirtualHost that it'll sets url to
http://webmail.mydomain.com/cgi-bin/openwebmail/openwebmail.pl accessing
to http://webmail.mydomain.com ?
Thank you very much
Davide Denicolo
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org