|
настройка Nginx: index.html и index.php в разных каталогах
|
|||
---|---|---|---|
#18+
Всем привет! В nginx.conf есть такие строки root /home/site/www; index index.html index.php; location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /home/site/php$fastcgi_script_name; include /etc/nginx/fastcgi_params; } Дело в том, что у меня индексные файлы в разных каталогах: /home/site/www/index.html и /home/site/php/index.php Как мне прописать, чтобы если нет индексного файла по первому адресу /home/site/www/index.html запускался файл /home/site/php/index.php ? ... |
|||
:
Нравится:
Не нравится:
|
|||
24.08.2015, 16:50 |
|
настройка Nginx: index.html и index.php в разных каталогах
|
|||
---|---|---|---|
#18+
Как то так можно попробовать Код: sql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18.
} ... |
|||
:
Нравится:
Не нравится:
|
|||
27.08.2015, 15:19 |
|
|
start [/forum/topic.php?fid=25&msg=39037584&tid=1481972]: |
0ms |
get settings: |
11ms |
get forum list: |
15ms |
check forum access: |
5ms |
check topic access: |
5ms |
track hit: |
136ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
1ms |
others: | 239ms |
total: | 469ms |
0 / 0 |