Re: virtual server configuration

2013-06-17 Thread Wong Kee Wee
_buffer_size 32k; >>>> >> > fastcgi_split_path_info ^(.+\.php)(/.+)$; >>>> >> > fastcgi_param PATH_INFO $fastcgi_path_info; >>>> >> > fastcgi_param PATH_TRANSLATED >>> >> $document_root

Re: Hosting multiple domains

2013-06-17 Thread steve
If it's a linux server, look at logrotate. This will keep old versions, and can also zip them up... being text files they compress very well. hth, Steve On 2013-06-18 13:46, Paul N. Pace wrote: Thank you Steve for nginx -t, and Sajan was correct, I had a syntax error in a server block. Howev

Re: Hosting multiple domains

2013-06-17 Thread Paul N. Pace
Thank you Steve for nginx -t, and Sajan was correct, I had a syntax error in a server block. However, while I was troubleshooting I noticed my log files getting rather huge. I keep the access_log and error_log files in the directories for each site. How can I keep these log files to a reasonable

Re: try_files question... or alternative?

2013-06-17 Thread Francis Daly
On Tue, Jun 18, 2013 at 10:05:07AM +1200, Steve Holdoway wrote: Hi there, > Is there a simple way of getting nginx to search for the index when > given a bare directory as URL? In general, this is a bad idea. In your specific case, it may not be. So if an explicit listing is acceptable, then yo

try_files question... or alternative?

2013-06-17 Thread Steve Holdoway
Is there a simple way of getting nginx to search for the index when given a bare directory as URL? eg in a server block... index index.php index.html index.htm; when passed an URL of http://www.example.com/sub where there is no location /sub {} block it looks for http://www.exampl

Re: virtual server configuration

2013-06-17 Thread Vasil Kolev
rm /etc/nginx/sites-enabled/default should fix it, the default takes over everything, from what I've seen. В 16:56 +0100 на 17.06.2013 (пн), Janet Valbuena написа: > Hi Wong > > I installed nginx recently and haven't changed anything in nginx.conf. > > > It actually doesn't include /etc/nginx/s

Re: virtual server configuration

2013-06-17 Thread Janet Valbuena
Hi Wong I installed nginx recently and haven't changed anything in nginx.conf. It actually doesn't include /etc/nginx/sites-available/* but it does include /etc/nginx/sites-enabled/*, which is where I put a symbolic link of my config file. user www-data; worker_processes 4; pid /var/run/nginx.pi

Re: virtual server configuration

2013-06-17 Thread Wong Kee Wee
Hi Janet, Can you show us the content of your nginx.conf? Do you have the 'include' directive in your nginx.conf to point to your sites-available? For example: http { ... include /etc/nginx/sites-available/*; ... } Best regards, Wong Kee Wee Hi Sajan > > Yes I did restart nginx. I've tried

Re: virtual server configuration

2013-06-17 Thread Janet Valbuena
Hi Sajan Yes I did restart nginx. I've tried several times. Just tried nginx -t and all seems to be fine. nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful JV On 17 June 2013 15:48, Sajan Parikh wrote

Re: virtual server configuration

2013-06-17 Thread Sajan Parikh
Did you restart nginx for the new configuration to take effect?  Run 'sudo service nginx restart' to do this.  Also run 'nginx -t' to test your configuration. Sajan Parikh Owner, Noppix LLC e: sa...@noppix.com p: (563) 726-0371

virtual server configuration

2013-06-17 Thread Janet Valbuena
Hi I'm new to nginx. I'm trying to configure a virtual server. I've created a new server file under sites-enabled like this: server { listen 80; ## listen for ipv4; this line is default and implied server_name blogtest; root /usr/share/nginx/cakephptest/app/webroot; index inde

Re: truncated output for large files through proxy

2013-06-17 Thread James Lee
On 17/06/2013 12:06, Maxim Dounin wrote: Hello, The eventport event method is known to have problems. Use devpoll (default) instead. Not by me [until now]. Please remove it and update the documentation! James. ___ nginx mailing list nginx@ngin

Re: truncated output for large files through proxy

2013-06-17 Thread Maxim Dounin
Hello! On Mon, Jun 17, 2013 at 11:56:31AM +0100, James Lee wrote: > On 16/06/2013 02:37, Maxim Dounin wrote: > > > Hello, > > > > >Could you please provide debug log, nginx -V output and a minimal > >full config to reproduce the problem? > > *** cut down http.conf *** > > error_log /path/to

Re: truncated output for large files through proxy

2013-06-17 Thread James Lee
On 16/06/2013 02:37, Maxim Dounin wrote: Hello, Could you please provide debug log, nginx -V output and a minimal full config to reproduce the problem? *** cut down http.conf *** error_log /path/to/logs/error.log debug; events { worker_connections 1024; use eventport; } http {