Welcome! Log In Create A New Profile

Advanced

_GET parameters with question and ampersand

April 14, 2014 05:03AM
Hi,

I am wondering how do I solve parameters being passed correctly after switching from apache.

http://app.mailerlite2.com/test/test_get/?labas=testarg NOT passing
http://app.mailerlite2.com/test/test_get/&labas=testarg PASS

# 1 server, proxy passes to internal server #2

server {
listen X.X.X.X:80;
server_name _;

location / {
proxy_pass http://192.168.53.30;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

# 2 server
server {
listen 192.168.53.30:80;
server_name ~^(?P<subdomain>.+)\.mailerlite2.com;
root /var/www/html/mailerlite2/public_html;
index index.php;
try_files $uri $uri/ $uri/index.php /index.php;

access_log /var/log/nginx/access.log;
client_max_body_size 300M;

location ~* /data/emails/ {
root /var/www/html;
expires 7d; access_log off;
add_header Cache-Control "public";
location ~* \.php$ {return 403;}
}
location ~* "^/data/custom_html" {
root /var/www/html;
location ~* \.php$ {return 403;}
}

location ~ \.php$ {
try_files $uri =404;
include fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\. {
deny all;
}
location / {

# Directives to send expires headers and turn off 404 error logging.
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
root /var/www/html/mailerlite2/public_html;
expires max; access_log off; log_not_found off;
add_header Cache-Control "public";
}
location ~* ^.+\.(css|js)$ {
root /var/www/html/mailerlite2/public_html;
expires 72h; access_log off;
add_header Cache-Control "public";
}
}

http://p.ngx.cc/170041499f94175e
SubjectAuthorPosted

_GET parameters with question and ampersand

arnasApril 14, 2014 05:03AM

Re: _GET parameters with question and ampersand

arnasApril 22, 2014 08:47AM

Re: _GET parameters with question and ampersand

arnasApril 22, 2014 10:01AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 62
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready