Help required

Zeeshan Opel zeeshanopel at
Mon Aug 19 06:53:56 UTC 2019

Dear members,

need your help regarding below nginx configuration. I have below config on
my nginx server but I am unable to rewrite the link. Please help me.
worker_processes  1;

worker_rlimit_nofile    30000;
events {
    worker_connections  1024;

http {
    include           mime.types;
    default_type      application/octet-stream;
    sendfile        on;
    keepalive_timeout   65;
    server {
        listen            80;
        server_name;#This is my nginx server
        rewrite         ^$
permanent;#trying to rewrite   to
        client_max_body_size    100m;

        location /{
                proxy_pass           ;

                proxy_redirect                    off;
                proxy_buffering                    off;
                proxy_set_header     X-Real-IP        $;
                proxy_set_header     X-Forwarded-For        $;
                proxy_set_header    Host            $host;
                proxy_set_header    X-Forwarded-Proto    $scheme;
                #proxy_pass                    $authenticated;
                proxy_read_timeout                240;
            }#end location
    }#end server

}#end http

Zeeshan Qaiser Opel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list