Welcome! Log In Create A New Profile

Advanced

Issue with apache in reverse proxy and .htaccess

Posted by bin_asc 
Issue with apache in reverse proxy and .htaccess
June 09, 2010 12:25PM
I`m trying to setup a vBulletin forum with vBSEO in reverse proxy using an installer that I found over at the cPanel forums.
Issue is, I used this numerous times on about 2 other VPSes, but on this one, it`s completely ignoring the .htaccess rewrites.
I`m using nginx with apache in reverse proxy. Currently, this is the only site on the VPS.
Any hints would be appreciated.

Below the configuration files :

[code]
user nobody;
# no need for more workers in the proxy mode
worker_processes 10;
error_log /var/log/nginx/error.log info;
worker_rlimit_nofile 65535;
events {
worker_connections 8192; # increase for busier servers
use epoll; # you should use epoll here for Linux kernels 2.6.x
}
http {
server_names_hash_max_size 2048;
server_names_hash_bucket_size 128;
include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 10;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/xml text/css;
ignore_invalid_headers on;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
connection_pool_size 256;
client_header_buffer_size 4k;
large_client_header_buffers 4 32k;
request_pool_size 4k;
output_buffers 4 32k;
postpone_output 1460;
# only works on dev version open_log_file_cache max=8000 inactive=20s min_uses=2 valid=1m;
log_format bytes_log "$msec $bytes_sent .";
include "/etc/nginx/vhosts/*";
}
[/code]

[code]
server {
error_log /var/log/nginx/vhost-error_log warn;
listen 80;
server_name xxxxx.com www.xxxxx.com xxx.xxx.xxx.xxx;
access_log /usr/local/apache/domlogs/xxxx.com-bytes_log bytes_log;
access_log /usr/local/apache/domlogs/xxxxx.com combined;
location ~* \.(gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|htm|html|txt|js|css|exe|zip|rar|gz|tgz|uha|7z|doc|docx|xls|xlsx|pdf)$ {
root /home/xxxx/public_html;
}
location / {
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_connect_timeout 30s;
proxy_redirect http://xxxxx.com:8081 http://xxxxx.com;
proxy_redirect http://www.xxxxx.com:8081 http://www.xxxxx.com;

proxy_redirect http://xxx.xxx.xxx.xxx:8081 http://xxx.xxx.xxx.xxx;
proxy_pass http://xxx.xxx.xxx.xxx:8081/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
[/code]
Re: Issue with apache in reverse proxy and .htaccess
June 15, 2010 08:55AM
Look for my replies on the subject in that forum regarding the removal of .htm and .html in the file type line in your main nginx.conf
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready