Quote:
Originally Posted by briansol
nginx doesn't support .htaccess... that is an apache directive. You need to find the nginx file in the htaccess folder and add it into your nginx config file on your server.
Further, this file should NOT be 777. i don't know why people keep doing this. Only the /DATA and hits/ folder needs to be 777.
|
now iam set in /etc/nginx/vhosts
this my configuration but still error if service nginx restart
mybey some wrong..
test.com
HTML Code:
server {
error_log /var/log/nginx/vhost-error_log warn;
listen 11.14.230.194:80;
server_name test.com www.test.com;
access_log /usr/local/apache/domlogs/test.com-bytes_log bytes_log;
access_log /usr/local/apache/domlogs/test.com combined;
root /home/test/public_html;
location / {
try_files $uri @backend;
}
location @backend {
internal;
proxy_pass http://11.14.230.194:8081;
include proxy.inc;
}
location ~ .*\.(php|jsp|cgi|pl|py)?$ {
proxy_pass http://11.14.230.194:8081;
include proxy.inc;
}
location ~ .*\.(asp|aspx)?$ {
deny all;
}
location ~ /\.ht {
deny all;
}
location ~ ^/home/test/www/vbseo_sitemap/data/ {
deny all;
}
location ~ ^/home/test/www/ {
rewrite ^/((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;
}
}
thanks for helper.

