Welcome! Log In Create A New Profile

Advanced

Re: Dynamic Subdomain Configuration

Anonymous User
February 21, 2012 01:46PM
Still trying to track down what is causing the following to be logged in the error log:

2012/02/21 10:42:13 [error] 13884#0: *19 testing "/srv/www/users/foobar/wp" existence failed (2: No such file or directory) while logging request, client: X.X.X.X, server: ~^(?<user>.+)\.mydomain\.com$, request: "GET / HTTP/1.1", host: "foobar.pagelines.com"

I believe the problem is since I am configuring the server_name and root dynamically:

server_name ~^(?<user>.+)\.mydomain\.com$;
root /srv/www/users/$user/wp;

And obviously the root directory does not exist for foobar. Is there a way to suppress these errors, or maybe check if the root directory exists?
Subject Author Posted

Dynamic Subdomain Configuration

Anonymous User February 20, 2012 02:28PM

Re: Dynamic Subdomain Configuration

Edho Arief February 20, 2012 02:42PM

Re: Dynamic Subdomain Configuration

Anonymous User February 20, 2012 02:55PM

Re: Dynamic Subdomain Configuration

Maxim Dounin February 20, 2012 04:16PM

Re: Dynamic Subdomain Configuration

Anonymous User February 20, 2012 06:45PM

Re: Dynamic Subdomain Configuration

Anonymous User February 20, 2012 07:18PM

Re: Dynamic Subdomain Configuration

Anonymous User February 20, 2012 08:28PM

Re: Dynamic Subdomain Configuration

Anonymous User February 20, 2012 08:40PM

Re: Dynamic Subdomain Configuration

Edho Arief February 20, 2012 08:12PM

Re: Dynamic Subdomain Configuration

Edho Arief February 20, 2012 08:34PM

Re: Dynamic Subdomain Configuration

Edho Arief February 20, 2012 08:54PM

Re: Dynamic Subdomain Configuration

Anonymous User February 21, 2012 01:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 54
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready