Hot answers tagged

3

This commonly occurs because your 000-default website, which automatically enables itself when apache2 is installed on a Debian server, is enabled. Check to see if 000-default is enabled.


3

Set up a reverse proxy server (listening on ports 80 and 443) between your router and the other two servers, and direct the traffic by hostname from the proxy server to the other two (or more) servers. Note: by doing this you will also be able to purchase a single wildcard or SAN capable certificate to handle ALL of your secure sites. You have not given ...


2

You likely have not enabled the NameVirtualHost *:80 line in conf/httpd.conf You may also like to add a line for port 443 too if you're using that. The following commands are your friends: apachectl configtest httpd -S ls -ltr /var/log/httpd The last command will show the log directory sorted by modification time; most recent last. Useful when you don'...


2

This looks like you have deployed a (puppet) template rather than the actual configuration file.


1

There is no built in way and you have to make use of include files one way or another. Putting a bunch of include statements into the main file is counter-productive since you will end up with a large VCL with dozens of ifs, that is hard to manage. I've posted an article how you should be managing Varnish virtual hosts in a clutter-free way, which seems to ...


1

The technology you are looking for is called a reverse proxy. You can use your existing front end server as a reverse proxy for your backend/dev server, it's really very straightforward. Having your front end terminate the SSL is easy too. There are lots of Q&A about using apache as a reverse proxy already on SF


1

The best way, i think is nginx and ngx_http_proxy_module. It highly scalable, fast and functional. You can configure encryption with one certificate for all site, it quite transparent. For very simple example add dirrective in nginx srv config: location /srv1 { proxy_pass http://server1; proxy_set_header Host $host; proxy_set_header ...


1

Generally the first virtual host entry also acts as the default, so make your first virtual host entry point to a folder with an access denied page.



Only top voted, non community-wiki answers of a minimum length are eligible