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:14AM
On Thu, Feb 17, 2011 at 8:58 PM, Igor Sysoev <igor@sysoev.ru> wrote:
> 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;
>  }
>
>

more like, it goes like this:

######################

#this goes first or hell will broke loose
location ~ ^/phpmyadmin/(.*\.php)$ {
alias /var/www/monsite.fr/phpMyAdmin/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}

#this must be done
location = /phpmyadmin {
rewrite ^ $scheme://$host$uri/ permanent;
}

#usual business
location /phpmyadmin/ {
index index.php; alias /var/www/monsite.fr/phpMyAdmin/;
}

######################

though from my experience it's much better to use symlink instead of
alias. If "if" is evil, "alias" is lesser evil.

_______________________________________________
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: 182
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