Can not access to index.php
May 17, 2012 02:32PM
I'm running both Wordpress and IPB on same server. (wordpress is on the root, IPB lays on /forum folder). I'm trying to use Wordpress permalinks and IPB FURLs at the same time. Links are working without problem but I can not display admin login page. When I try to enter admin panel with the address: http://localhost/forum/admin, nginx simply returns me to forum's homepage. How can I exclude /forum/admin/ path from rewriting?

This is part of my conf content:

server {
listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6

root /home/dragon/public_html;
index index.php index.html index.htm;

access_log /var/log/nginx/dragon/;
error_log /var/log/nginx/dragon/;

server_name localhost;

location / {
try_files $uri $uri/ /index.php;

location /forum/ {
index index.php;
try_files $uri $uri/ /forum/index.php;
rewrite ^ /forum/index.php? last;

location /forum/admin/ {
index index.php;

location ~ \.php$ {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_NAME /index.php;
fastcgi_split_path_info ^(/)(/.*)$;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 97
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