PDA

View Full Version : Choose between Apache/Lighttpd/Nginx


ryan14
09-03-2009, 05:23 AM
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.

slava
09-03-2009, 03:33 PM
ISPmanager works with Apache server. It is possible to install Nginx as front-end for proxying http requests.
Other configurations are not supported.

ryan14
09-06-2009, 06:20 AM
My feature request is to allow ISPmanager to work WITHOUT Apache server. So people can choose Apache or Nginx.

ISPmanager works with Apache server. It is possible to install Nginx as front-end for proxying http requests.
Other configurations are not supported.

slava
09-06-2009, 03:17 PM
to allow ISPmanager to work WITHOUT Apache server
This is impossible, at least in the near future, at least it will not happen in the current major version (4.x).

ryan14
09-16-2009, 05:11 AM
by proxying http requests, do you mean static AND dynamic content? OR just static content?

ISPmanager works with Apache server. It is possible to install Nginx as front-end for proxying http requests.
Other configurations are not supported.

slava
09-16-2009, 11:27 AM
Static and dynamic content.

ryan14
09-17-2009, 06:26 AM
so what is apache used for then?

Static and dynamic content.

slava
09-17-2009, 07:11 AM
so what is apache used for then?

1. ISPmanager core needs apache, because ispmgr runs through apache SSL port.

2. Nginx proxyng requests to apache and transfers static content, for example from nginx.conf

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|av i|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.

GakcaT
11-16-2009, 04:26 AM
2 Dewarregekdazy:
Create a new thread for your problem. This thread was closed.