我对nginx感到恼火。 我在/ usr / share / nginx / www / firstapp中设置了一个应用程序,在/ usr / share / nginx / www / secondapp中。 在我的默认configuration我安装在/根本地化我想第一个应用程序:当在浏览器中写9.9.9.9显示我的第一个应用程序,当我写9.9.9.9/makeup,没有显示我第二个应用程序。
为什么第一个应用程序显示我很好,seccondapp不能? 请帮帮我。
对不起,质量这里pasterbin代码: 在这里input链接描述
server { listen 80; server_name localhost; root /usr/share/nginx/www/firstapp/web; access_log /var/log/nginx/$host.access.log; error_log /var/log/nginx/error.log error; # strip app.php/ prefix if it is present rewrite ^/app\.php/?(.*)$ /$1 permanent; location / { root /usr/share/nginx/www/firstapp/web/; index app.php; try_files $uri @rewriteapp; } location /makeup/ { alias /usr/share/nginx/www/seccondapp/web/; index app.php; try_files $uri @rewriteapp; } location @rewriteapp { rewrite ^(.*)$ /app.php/$1 last; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 location ~ ^/(app|app_dev)\.php(/|$) { #fastcgi_pass 127.0.0.1:9000; fastcgi_pass unix:/var/lib/php5-fpm/www.sock; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param HTTPS off; #fastcgi_param SERVER_PORT 80; }