09-03-2009, 05:23 AM | #1 |
Junior Member
Join Date: Aug 2009
Posts: 8
|
Choose between Apache/Lighttpd/Nginx
isp manager pro should have a feature when we can set the default web server we want to use. So if we choose Nginx, then Apache will be completely disabled and only Nginx will be running.
You should have 3 options: Apache/Lighttpd/Nginx All of isp manager pro's features should work 100% correctly on any of the 3 web servers. |
09-06-2009, 06:20 AM | #3 |
Junior Member
Join Date: Aug 2009
Posts: 8
|
|
09-16-2009, 05:11 AM | #5 |
Junior Member
Join Date: Aug 2009
Posts: 8
|
|
09-17-2009, 07:11 AM | #8 | |
ISPsystem team
Join Date: May 2008
Location: ISPsystem
Posts: 588
|
Quote:
2. Nginx proxyng requests to apache and transfers static content, for example from nginx.conf Code:
server { listen 193.0.0.193:80; server_name example.com www.example.com; rewrite ^(/manager/.*)$ https://$host$1 permanent; location ~* ^/(webstat/|awstats|webmail/|myadmin/|manimg/) { proxy_pass http://193.0.0.193:8080; proxy_redirect http://example.com:8080/ /; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; } location / { proxy_pass http://193.0.0.193:8080; proxy_redirect http://example.com:8080/ /; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; } location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar)$ { root /home/web/data/www/example.com; access_log /home/httpd-logs/example.com.access.log; error_page 404 = @fallback; } location @fallback { proxy_pass http://193.0.0.193:8080; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; } } Apache back-end listen port 8080 and execute php/cgi-scripts, nginx front-end listen http port 80 and send data to web-browser and proxying request for static content files directly. Last edited by tanya; 10-06-2009 at 05:04 AM. |
|
|
|