Why Not Posted June 25, 2016 Report Share Posted June 25, 2016 Всем привет! Подскажите пожалуйста как добавить свои строки в Nginx на Open Server'е ??? Link to comment
Mario Posted June 25, 2016 Report Share Posted June 25, 2016 Всем привет! Подскажите пожалуйста как добавить свои строки в Nginx на Open Server'е ??? Дополнительно - Конфигурация - Тут твоя версия Link to comment
Why Not Posted June 25, 2016 Author Report Share Posted June 25, 2016 (edited) Дополнительно - Конфигурация - Тут твоя версия Это я нашел, там выбираешь Nginx со своей версией и открывается файл. А код куда именно пихать строки? После чего или до чего? Edited June 25, 2016 by Why Not Link to comment
Mario Posted June 25, 2016 Report Share Posted June 25, 2016 Это я нашел, там выбираешь Nginx со своей версией и открывается файл. А код куда именно пихать строки? После чего или до чего? location / { root %sprogdir%/modules/system/html/default; index index.html; } Link to comment
Why Not Posted June 25, 2016 Author Report Share Posted June 25, 2016 location / { root %sprogdir%/modules/system/html/default; index index.html; } Таких нет, есть такие: location / { root "%hostdir%"; index index.php index.html index.htm; } Link to comment
Why Not Posted June 25, 2016 Author Report Share Posted June 25, 2016 (edited) location / { root %sprogdir%/modules/system/html/default; index index.html; } До них, после них или в них вставлять? Потому что после я запихал, не работает.. Строки вот такие: # отдаем браузеру location ~* \.(mp3|js|css|png|jpg|jpeg|gif|ico|html|font|ttf|woff2|woff|svg|otf)$ { expires max; } charset utf-8; autoindex off; location /login { rewrite ^/login/*$ /?module=login break; } location /register { rewrite ^/register/*$ /?module=register break; } location /restore { rewrite ^/restore/*$ /?module=restore break; rewrite ^/restore/([a-z,A-Z,0-9]+)/*$ /?restore_code=$1 break; } location /uid { rewrite ^/uid([0-9]+)/*$ /?module=user&id=$1 break; } location /logout { rewrite ^/logout/*$ /?module=do_login&logout=1 break; } location /active { rewrite ^/active/([a-z,A-Z,0-9]+)/*$ /?active_code=$1 break; } location /functions.php { deny all; } Edited June 25, 2016 by Why Not Link to comment
Why Not Posted June 25, 2016 Author Report Share Posted June 25, 2016 Поможет кто нибудь? Link to comment
Why Not Posted June 26, 2016 Author Report Share Posted June 26, 2016 Удаляйте тему, помог viiprogrammer. Запустили раза с 3го) Камень с души упал Спасибо ему огромное!!! Link to comment
Recommended Posts