Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need easy apache config

10 views
Skip to first unread message

tom...@live.at

unread,
Mar 27, 2012, 10:32:49 AM3/27/12
to
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

unread,
Mar 28, 2012, 4:47:56 PM3/28/12
to
On Tue, 27 Mar 2012 07:32:49 -0700 (PDT), tom...@live.at wrote:

>Unfort. two hosts with the same port does not work:

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
0 new messages