MODx setup
äÍÉÔÒÉÊ áÎÄÒÅÅ×
me at kemko.ru
Sat Oct 12 11:50:12 UTC 2013
http://nginx.org/en/docs/http/ngx_http_index_module.html#index . ìÉÂÏ ÐÏÐÒÏÂÏ×ÁÔØ ÎÁÂÉÒÁÔØ ÐÏÌÎÙÊ ÁÄÒÅÓ, ×ÉÄÉÍÏ ÞÔÏ-ÔÏ ×ÒÏÄÅ /setup/index.php?action=welcome
12.10.2013, 15:37, "Haikson" <nginx-forum at nginx.us>:
> îÕÖÎÁ ÐÏÍÏÝØ × ÐÏÎÉÍÁÎÉÉ ËÁË ÄÅÊÓÔ×Ï×ÁÔØ. ðÙÔÁÀÓØ ÕÓÔÁÎÏ×ÉÔØ MODx Revo
> ÷ÏÔ ÎÁÓÔÒÏÊËÉ nginx.
> server {
> ššššlisten ššššš80;
> ššššserver_name xn----7sbitcnbnlgdqs1b8l.xn--p1ai;
> ššššcharset ššššutf8;
> ššššautoindex ššoff;
> ššššaccess_log š/srv/logs/poly_access.log;
> ššššerror_log šš/srv/logs/poly_error.log error;
> ššššroot ššššššš/srv/www/haikson/poly;
> ššššindex index.php;
> ššššrewrite_log ššššššššon;
>
> ššššlocation /core/ {
> ššššššššdeny all;
> šššš}
>
> ššššlocation / {
> šššššššštry_files $uri $uri/ @modx;
> šššš}
>
> ššššlocation @modx {
> ššššššššrewrite šššššššš^/(.*)$ /index.php?q=$1;
> šššš}
>
> ššššlocation ~* "/\.ht" {
> ššššššššdeny all; šš# ÚÁÐÒÅÔÉÔØ ×ÓÅ ÄÌÑ ×ÓÅÈ
> ššššššššreturn 404; # ×ÅÒÎÕÔØ ËÏÄ ÏÛÉÂËÉ 404
> šššš}
>
> ššššlocation = /favicon.ico {
> ššššššššlog_not_found off;
> ššššššššaccess_log off;
> šššš}
> ššššlocation = /robots.txt {
> ššššššššallow all;
> ššššššššlog_not_found off;
> ššššššššaccess_log off;
> šššš}
>
> ššššlocation ~* \.(jpg|jpeg|gif|css|png|js|ico|bmp)$ {
> ššššššššaccess_log ššššššoff;
> ššššššššexpires 30d;
> ššššššššbreak;
> šššš}
>
> ššššlocation ~ .php$ {
> šššššššštry_files $fastcgi_script_name =404;
> ššššššššfastcgi_split_path_info ^(.+\.php)(.*)$;
> ššššššššfastcgi_pass
> unix:/var/run/php-fpm/phpfpm.socket;
> ššššššššfastcgi_index ššššššššššššššššššššššindex.php;
> ššššššššfastcgi_param ššSCRIPT_FILENAME
> $document_root$fastcgi_script_name;
> ššššššššfastcgi_param ššPATH_TRANSLATED
> $document_root$fastcgi_script_name;
> ššššššššfastcgi_param ššPATH_INFO šššššššššš$fastcgi_path_info;
> ššššššššfastcgi_param ššPHP_VALUE šššššššššš"apc.cache_by_default=0";
> ššššššššinclude ššššššššššššššššššššššššššššfastcgi_params;
> šššš}
> }
>
> ïÔËÒÙ×ÁÀ /setup/ - ×Ó£ ÎÏÒÍÁÌØÎÏ
> ðÙÔÁÀÓØ ÐÅÒÅÊÔÉ ÎÁ ÓÌ. ÕÒÏ×ÅÎØ (/setup/?action=welcome ) ÐÅÒÅÂÒÁÓÙ×ÁÅÔ ÎÁ
> /?action=welcome
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,243636,243636#msg-243636
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ nginx-ru