|
настройка 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/search_topic.php?author=alisaap&author_mode=last_posts&do_search=1]: |
0ms |
get settings: |
9ms |
get forum list: |
12ms |
get settings: |
11ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
51ms |
get topic data: |
13ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
others: | 636ms |
total: | 797ms |
0 / 0 |