i have 2 different application 1 acts backend panel whereas 1 app client facing site.
i have set client site on default 80 port , backend panel app on port number 8000.
i facing issue when try bind wwww.abc.com:8000 www.abc.com/admin. on opening of link, text gets displayed css , js not getting loaded. found in console says css , javascript files not found. also, address specifies css , javascript of root folder , not of backend panel folder.
here code have written setup nginx bind route here
server { listen 80; server_name abc.com include /etc/nginx/mime.types; location / { proxy_set_header x-real-ip $remote_addr; proxy_set_header host $http_host; proxy_pass http://127.0.0.1:1337; } location ^~ /admin { root /root/workspace/lexcarts-admin-panel; proxy_set_header x-real-ip $remote_addr; proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for; proxy_set_header host $http_host; proxy_set_header x-nginx-proxy true; proxy_pass http://127.0.0.1:8000; proxy_redirect on; } }
client app accessible default www.abc.com .
please guide me going wrong.
tia
Comments
Post a Comment