t***@live.at
2012-03-27 14:32:49 UTC
Hi,
I thought to create an rpm which copies a virtual-host file into sites-available and creates a symbolic link in sites-enabled. Unfort. two hosts with the same port does not work:
<VirtualHost *:80>
Alias /htr "/home/tombert/cm/htr-wserver"
Alias /htr-wserver "/home/tombert/cm/htr-wserver"
<Directory "/home/tombert/cm/htr-wserver">
AllowOverride None
Order deny,allow
Deny from all
Allow from all
</Directory>
</VirtualHost>
Putting the "directory" section into the default virtual-host *:80 it works fine. But I thought it much easier for an self-installer to simply keep a pre-configured hosts file and copy it to the correct location.
So my question is the following: Is it possible to create an installation without touching the default and any other apache config file?
thx
I thought to create an rpm which copies a virtual-host file into sites-available and creates a symbolic link in sites-enabled. Unfort. two hosts with the same port does not work:
<VirtualHost *:80>
Alias /htr "/home/tombert/cm/htr-wserver"
Alias /htr-wserver "/home/tombert/cm/htr-wserver"
<Directory "/home/tombert/cm/htr-wserver">
AllowOverride None
Order deny,allow
Deny from all
Allow from all
</Directory>
</VirtualHost>
Putting the "directory" section into the default virtual-host *:80 it works fine. But I thought it much easier for an self-installer to simply keep a pre-configured hosts file and copy it to the correct location.
So my question is the following: Is it possible to create an installation without touching the default and any other apache config file?
thx