We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
определенный домен должен обрабатывать html как php
определенный домен должен обрабатывать html как php
Раньше для apache работала директива в .htaccess
RemoveHandler .html
AddType application/x-httpd-php .html .php
через :8080 все работает....
Теперь по всей видимости отрабатывает nginx...
как его заставить обрабатывать .html для 1 домена, что надо прописать в конфиге?
%home%/%user%/conf/web/nginx.%domain%.conf*;
Подскажите пожалуйста ;)
RemoveHandler .html
AddType application/x-httpd-php .html .php
через :8080 все работает....
Теперь по всей видимости отрабатывает nginx...
как его заставить обрабатывать .html для 1 домена, что надо прописать в конфиге?
%home%/%user%/conf/web/nginx.%domain%.conf*;
Подскажите пожалуйста ;)
Re: определенный домен должен обрабатывать html как php
http://www.softwareprojects.com/resourc ... -1817.html
Code: Select all
location ~* .(php)$
{
fastcgi_pass backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/domain.com/public_html/$fastcgi_script_name;
include /etc/nginx/fastcgi_top.conf;
fastcgi_param DOCUMENT_ROOT /home/domain.com/public_html/;
include /etc/nginx/fastcgi_bottom.conf;
error_page 404 = /notfound.php;
}
location ~* .(htm|html)$
{
fastcgi_pass backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/domain.com/public_html/notfound.php;
include /etc/nginx/fastcgi_top.conf;
fastcgi_param DOCUMENT_ROOT /home/domain.com/public_html/;
include /etc/nginx/fastcgi_bottom.conf;
error_page 404 = /notfound.php;
}
}
Re: определенный домен должен обрабатывать html как php
добавлял в %home%/%user%/conf/web/nginx.%domain%.conf*;
не работает
может есть примеры nginx.%domain%.conf*; конфигов у кого то? выложите плиз
Code: Select all
location ~ \.(htm|html)$ {
include /usr/local/vesta/nginx/conf/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/local/vesta/web/$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_pass unix:/var/run/vesta-php.sock;
fastcgi_intercept_errors on;
break;
}
может есть примеры nginx.%domain%.conf*; конфигов у кого то? выложите плиз