Welcome! Log In Create A New Profile

Advanced

admin.php über /admin und index.php über /

Posted by patrickk 
admin.php über /admin und index.php über /
April 11, 2013 06:52AM
Hallo Ihr,

habe ein Problem ich habe 2 PHP-Dateien

index.php & admin.php

Ich möchte die beiden Dateien wie folgt ansprechen.

index.php:
/index.php/welcome/index/...
/welcome/index/...

admin.php
/admin.php/welcome/index/...
/admin/welcome/index/...

Meine Konfiguration:
root /usr/share/nginx/www/foobar/;
index index.php index.html index.htm;

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

location ~ .php/ {
rewrite ^(.*.php)/ $1;
}

if (!-d $request_filename) {
rewrite ^/(.+)/$ /$1 permanent;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/www/foobar;
}

location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}

location ~ /\.ht {
deny all;
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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