Hello
can someone help me how to add vbseo rules in nginx configuration file ? this is the code for the site on nginx
the vbulletin on /vb directory i open it http://vb.sitename.comCode:server { access_log off; error_log logs/vhost-error_log warn; listen 80; server_name vb.sitename.com www.vb.sitename.com; # uncomment location below to make nginx serve static files instead of Apache # NOTE this will cause issues with bandwidth accounting as files wont be logged location ~* \.(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|js|css)$ { root /home/sitename/public_html/vb; } location / { client_max_body_size 10m; client_body_buffer_size 128k; proxy_send_timeout 90; proxy_read_timeout 90; proxy_buffer_size 4k; # you can increase proxy_buffers here to suppress "an upstream response # is buffered to a temporary file" warning proxy_buffers 16 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k; proxy_connect_timeout 30s; proxy_redirect http://www.vb.sitename.com:81 http://www.vb.sitename.com; proxy_redirect http://vb.sitename.com:81 http://vb.sitename.com; proxy_pass http://10.0.0.1:81/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }
i try to add the following code
ABOVECode:location /vb/ { rewrite ^/vb/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /vb/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last; if ($request_filename ~ "\.php$" ) { rewrite ^/vb/(.*)$ /vb/vbseo.php last; } if (!-e $request_filename) { rewrite ^/vb/(.*)$ /vb/vbseo.php last; } }
but still not working at all , i trying to made the arabic url working on but i got on arabic URLSCode:location / {
The page isn't redirecting properly
i hope someone will help me regard this issuethanks


LinkBack URL
About LinkBacks





Reply With Quote
