Hacked / Re: [users@httpd] Alias-ed directory appears on multiple virtual hosts

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

 



Ho,

On 07.12.2010 20:33, Eric Covener wrote:
Apache uses the first virtual host in each set of NameVirtualHost's as
a default/catch-all after IP-based vhosting ...

Now I understand, thanks for your patience in explaining it.

What I did now is add a dummy-domain on top of my SSL config:

## SSL ##
NameVirtualHost 1.2.3.4:443
<VirtualHost 1.2.3.4:443>
	DocumentRoot    /var/www/
	ServerName      www.catch-dummy.xx
	SSLEngine on
	SSLProtocol all -SSLv2
	SSLCertificateFile      ...
</VirtualHost>

<VirtualHost 1.2.3.4:443>
        ServerName www.onesite.com
        ServerAlias onesite.com *.onesite.com
        DocumentRoot /var/www/
# pgAdmin
Alias /phppgadmin /usr/share/phppgadmin/
<Directory /usr/share/phppgadmin/>
        DirectoryIndex index.php
        Options +FollowSymLinks
</Directory>
</VirtualHost>
## end

This works, albeit looks more like a hack than a solution...

/ Bernd

---------------------------------------------------------------------
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