Modify access to directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux