New to nginx. Thought I understood the server config, but I don't think I do, was hoping someone could clarify for me in baby speak :) How I thought the following code worked is as follows: - if theres a connection on port 80 and the url is www.example.com, page loads from /usr/local/www/page1 - if theres a connection on port 443 and the url is secure.example.com, page loads from /usr/local/by NeHe - Migration from Other Servers
To clarify: The wrong page loads only if I use a mix of IP:PORT with just PORT (no ip). I wanted the mix because there are a few pages that I want to share internally and externally (company page / webmail), but there are also pages I want internal only (internal reports). using listen 80; to deal with both internal / external is easier than setting up one server for each :( I think I resby NeHe - How to...
Running the following sites: Internally: internal reports, company web page, webmail Externally: company web page, webmail (SSL) In lighttpd I was able to use sockets to monitor specific IP / port combinations as follows: $SERVER["socket"] == "192.168.0.x:80" { $HTTP["host"] =~ "www.example.com" { server.document-root =by NeHe - How to...