Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置独立host,出现404 #17

Open
inspire7c opened this issue Apr 11, 2016 · 1 comment
Open

配置独立host,出现404 #17

inspire7c opened this issue Apr 11, 2016 · 1 comment

Comments

@inspire7c
Copy link

访问http://dev.phpssdbadmin.com , 302 到 http://dev.phpssdbadmin.com/login ,并出现404

配置文件
phpssdbadmin.conf

server {

        listen  80;

        server_name    dev.phpssdbadmin.com;

        root  /opt/wwwroot/phpssdbadmin/;

        location / {
                index  index.php index.html index.htm;
         }
        location ~ \.php$ {
                fastcgi_pass   unix://var/run/php5-fpm.sock;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  $document_root/$fastcgi_script_name;
                include        fastcgi_params;
         }
 }
@ideawu
Copy link
Contributor

ideawu commented Apr 11, 2016

请加入

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

文档已经明确说明了!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants