Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name test.myproject.com;
- rewrite ^/(.*)$ /myproject/$1;
- location / {
- proxy_pass http://127.0.0.1:8080/;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- }
- server {
- listen 80;
- server_name test.myotherproject.com;
- rewrite ^/(.*)$ /myotherproject/$1;
- location / {
- proxy_pass http://127.0.0.1:8080/;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- }
- server {
- listen 80;
- server_name web1.myhost.com.br;
- location /static/ {
- root /home/ubuntu/projects/hellow/;
- }
- location / {
- uwsgi_pass unix:/var/run/uwsgi.sock;
- include uwsgi_params;
- uwsgi_param SCRIPT_NAME '';
- }
- }
- HTTP Status 404 - /myotherproject/myotherproject/user/redirectPermission
- type Status report
- message /myotherproject/myotherproject/user/redirectPermission
- description The requested resource is not available.
- Apache Tomcat/7.0.33
- $ curl -I http://test.myproject.com/myproject
- $ curl -I http://test.myotherproject.com/myotherproject
- rewrite ^/(.*)$ /myotherproject/$1;
- proxy_pass http://127.0.0.1:8080/myotherproject/;
Add Comment
Please, Sign In to add comment