Discussion:
Need easy apache config
(too old to reply)
t***@live.at
2012-03-27 14:32:49 UTC
Permalink
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
Swifty
2012-03-28 20:47:56 UTC
Permalink
For it to be two diferent hosts, you need (at least) a ServerName
directive in your VirtualHost block.
--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Continue reading on narkive:
Loading...