Aaaah, of course... Thx... :) BTJby bjorntj - How to...
I already have that in my config... My config looks like this: server { listen 80; server_name www.domain.no; access_log /var/log/nginx/domain-access.log; error_log /var/log/domain-error.log; location / { root /www/domaindir; index index.php; if (-f $request_filename) {by bjorntj - How to...
I have setup nginx 1.8 with php-fpm support and it is working as it should, except for this small problem.. If I use: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; I get Access denied... But using the root dir like this works: fastcgi_param SCRIPT_FILENAME /www/domaindir$fastcgi_script_name; Shouldn't using $document_root work or am I missing something? Rby bjorntj - How to...
Yes, the config are the same... I only commented out the ssl stuff from the config to check... Not sure what you mean by loading a proxy.conf file but I am not loading any other files containing proxy configurations.... (sorry for det delay on answering...) BTJby bjorntj - Other discussion
I have Nginx server in front of a Tomcat server but I have a problem getting the real ip... If I don't use SSL, then the real ip is set in both x-forwarded-from and x-real-ip but when I use SSL, those variables contain the ip address of the firewall in front of the Nginx server... Is this just the way it is or is there something I can configure to fix this? I am using the following config forby bjorntj - Other discussion
What kind of information is needed? My nginx config? Anything else? BTJby bjorntj - Nginx Mailing List - English
No one have any insights on this? BTJby bjorntj - Nginx Mailing List - English
I have Nginx as a reverse proxy in front of a Tomcat server running a webapp. This works ok using Firefox but not Chrome or IE... When using Chrome or IE, the JSESSIONID gets a new value for each request (instead of keeeping the same value as it should). Are there some settings I am missing to fix this? (Using Apache it works for all browsers but I want to use Nginx.... :) ) Regards,by bjorntj - Nginx Mailing List - English
I have the following config..: server { listen 80; server_name site.example.com; access_log /var/log/nginx/site.example.com_access.log main; location / { rewrite ^ http://site.example.com/webapp; } location /webapp/ { proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxyby bjorntj - Nginx Mailing List - English