Welcome! Log In Create A New Profile

Advanced

Re: Problem with nginx/0.8.54 and alias

All files from this thread

File Name File Size   Posted by Date  
thunderbird_saved_items_copy.png 83.4 KB open | download Jim Ohlstein 02/19/2011 Read message
google_apps_mail.ohlste.in_screenshot.png 69.9 KB open | download Jim Ohlstein 02/19/2011 Read message
forum_is_awful.png 39.8 KB open | download Jim Ohlstein 02/19/2011 Read message
analytics.png 42.8 KB open | download Jim Ohlstein 02/19/2011 Read message
analytics2.png 62.5 KB open | download Jim Ohlstein 02/19/2011 Read message
February 18, 2011 03:04AM
I have an error now when i restart nginx.
/etc/init.d/nginx restart
Restarting nginx: [emerg]: pcre_compile() failed: unrecognized character after (? or (?- in "^/phpmyadmin/(?.+\.php)$" at ".+\.php)$" in /etc/nginx/sites-enabled/default:65
configuration file /etc/nginx/nginx.conf test failed

I have this code in /etc/nginx/sites-available/default
[code]
server {
listen 80;
root /var/www/monsite.fr;
index index.html index.htm index.php;
server_name monsite.fr;

location /phpmyadmin {
access_log off;
alias /var/www/monsite.fr/phpMyAdmin;
index index.html index.php;
}

location ~ ^/phpmyadmin/(?.+\.php)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/monsite.fr/phpMyAdmin/$NAME;
include fastcgi_params;
}

location / {
try_files $uri $uri/ /index.html;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

location ~ /\.ht {
deny all;
}
}
[/code]
And i have installed libpcre3, libpcre3-dev and compile the latest source from pcre.org.

So, I replace location ~ ^/phpmyadmin/(?.+\.php)$ by location ~ ^/phpmyadmin/(?<NAME>.+\.php)$. I have no error but it does not work more.

Thanks.
Subject Author Posted

Problem with nginx/0.8.54 and alias

Amanager February 17, 2011 08:16AM

Re: Problem with nginx/0.8.54 and alias

Igor Sysoev February 17, 2011 09:02AM

Re: Problem with nginx/0.8.54 and alias

Dayo February 17, 2011 01:09PM

Re: Problem with nginx/0.8.54 and alias

Maxim Dounin February 17, 2011 02:24PM

Re: Problem with nginx/0.8.54 and alias

Dayo February 18, 2011 02:11AM

Re: Problem with nginx/0.8.54 and alias

Maxim Dounin February 18, 2011 07:22AM

Re: Problem with nginx/0.8.54 and alias

Dayo February 18, 2011 11:57AM

Re: Problem with nginx/0.8.54 and alias

Jim Ohlstein February 18, 2011 12:50PM

Re: Problem with nginx/0.8.54 and alias

Maxim Dounin February 18, 2011 05:10PM

Re: Problem with nginx/0.8.54 and alias

Jim Ohlstein February 19, 2011 12:08PM

Re: Problem with nginx/0.8.54 and alias

Maxim Dounin February 19, 2011 06:18PM

Re: Problem with nginx/0.8.54 and alias Attachments

Jim Ohlstein February 19, 2011 08:34PM

Re: Problem with nginx/0.8.54 and alias

Maxim Dounin February 20, 2011 06:52AM

Re: Problem with nginx/0.8.54 and alias

Jim Ohlstein February 20, 2011 09:52AM

Re: Problem with nginx/0.8.54 and alias

Jim Ohlstein February 20, 2011 12:04PM

Re: Problem with nginx/0.8.54 and alias

Ryan Malayter February 21, 2011 04:40PM

Re: Problem with nginx/0.8.54 and alias

Eugaia February 20, 2011 03:36PM

Re: Problem with nginx/0.8.54 and alias

Maxim Dounin February 20, 2011 06:36PM

Issues with proxy cache [was Re: Problem with nginx/0.8.54 and alias]

Eugaia February 20, 2011 08:22PM

Re: Issues with proxy cache [was Re: Problem with nginx/0.8.54 and alias]

Maxim Dounin February 21, 2011 06:08AM

Re: Problem with nginx/0.8.54 and alias

Jim Ohlstein March 13, 2011 09:18PM

Re: Problem with nginx/0.8.54 and alias

Dayo February 19, 2011 01:12AM

Re: Problem with nginx/0.8.54 and alias

Jim Ohlstein February 19, 2011 11:06AM

Re: Problem with nginx/0.8.54 and alias

Jim Ohlstein March 13, 2011 09:20PM

Re: Problem with nginx/0.8.54 and alias

Jim Ohlstein March 14, 2011 08:42AM

Re: Problem with nginx/0.8.54 and alias

Amanager February 18, 2011 02:03AM

Re: Problem with nginx/0.8.54 and alias

Igor Sysoev February 18, 2011 02:24AM

Re: Problem with nginx/0.8.54 and alias

Amanager February 18, 2011 03:04AM

Re: Problem with nginx/0.8.54 and alias

edogawaconan February 18, 2011 03:14AM

Re: Problem with nginx/0.8.54 and alias

Amanager February 18, 2011 03:26AM

Re: Problem with nginx/0.8.54 and alias

Jim Ohlstein March 14, 2011 08:31AM

Re: Problem with nginx/0.8.54 and alias

Jim Ohlstein March 13, 2011 09:25PM

Re: Problem with nginx/0.8.54 and alias

Dayo March 18, 2011 03:37PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready