Hi Till,
what if I wanted one vhost to listen on port 80 and another to listen on a different port? As I understand it, changing the templates affect all the sites?
Can you give us an excerpt on how to go about changing the template for a situation like this?
Thanks again.
Found additional info here:
http://httpd.apache.org/docs/2.2/bind.html
Quote:
|
The Listen directive does not implement Virtual Hosts - it only tells the main server what addresses and ports to listen on. If no <VirtualHost> directives are used, the server will behave in the same way for all accepted requests. However, <VirtualHost> can be used to specify a different behavior for one or more of the addresses or ports. To implement a VirtualHost, the server must first be told to listen to the address and port to be used. Then a <VirtualHost> section should be created for the specified address and port to set the behavior of this virtual host. Note that if the <VirtualHost> is set for an address and port that the server is not listening to, it cannot be accessed.
|
So you just have to set the main apache config to listen to your port and change the vhost config to the appropriate port as well. I tested changing the vhost config and even after a server restart the ports on the vhost config file remained the same. So this might work for you.
Recent comments
17 hours 13 min ago
20 hours 8 min ago
21 hours 22 min ago
22 hours 46 min ago
1 day 24 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 19 hours ago
1 day 19 hours ago
1 day 23 hours ago