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 17, 2011 09:02AM
On Thu, Feb 17, 2011 at 08:16:39AM -0500, Amanager wrote:
> Hello,
>
> I try to set up a simple alias louse find out how. I read many articles.
> I almost try everything but nothing works. Currently I have this code in
> the file /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 / {
> 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;
> }
> }
> [/code]
>
> When I launch my browser's page http://monsite.fr/phpmyadmin/ I fall on
> the index.html file that I put in the directory
> /var/www/monsite.fr/phpMyAdmin/. By cons, when I run
> http://monsite.fr/phpmyadmin/index.php, there is nothing. The header
> returned is HTTP/1.1 404 Not Found.

Use late 0.8.x with this configuration:

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


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
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: 171
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