3 messages in ru.sysoev.nginxerror_page and virtual hosts
FromSent OnAttachments
Drazen MilosevicMar 24, 2008 8:16 am 
Drew RainesMar 24, 2008 8:42 am 
Drazen MilosevicMar 25, 2008 1:23 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:error_page and virtual hostsActions...
From:Drazen Milosevic (dmil@public.gmane.org)
Date:Mar 24, 2008 8:16:11 am
List:ru.sysoev.nginx

Hi everyone,

I have a lot of virtual hosts and I was wondering is there a way to setup this once in the main nginx.conf file.

server { listen x.x.x.x:80; root /VDOMAINS/domain/www; server_name domain; server_name domain; error_log /path; access_log /path; location ~ ^/(images|javascript|js|css|flash|media|static)/ { } error_page 404 /404.html; location = /404.html { root /VDOMAINS/htdocs/errors; } error_page 500 502 503 504 500.html; location = 500.html { root /VDOMAINS/htdocs/errors; } include /VDOMAINS/proxy.conf; } .......

These error_page directives are set individualy in every virtual host, but I was hoping there was a more ellegant solution. ?