Hi Team,
I have successfully setup the discourse and its working fine with the domain name. But when I have added the subfolder its not working, all the logos coming very big and I couldn’t see any content.
below is my subfolder code in yaml.
- exec:
cd: $home
cmd:
- mkdir -p public/community
- cd public/community && ln -s ../uploads && ln -s ../backups
- replace:
global: true
filename: /etc/nginx/conf.d/discourse.conf
from: proxy_pass http://discourse;
to: |
rewrite ^/(.*)$ /community/$1 break;
proxy_pass http://discourse;
- replace:
filename: /etc/nginx/conf.d/discourse.conf
from: etag off;
to: |
etag off;
location /community {
rewrite ^/community?(.*)$ /$1;
}
- replace:
filename: /etc/nginx/conf.d/discourse.conf
from: $proxy_add_x_forwarded_for
to: $http_your_original_ip_header
global: true
And root the url is :
DISCOURSE_RELATIVE_URL_ROOT: /community
Error:
I got the 500 internal server error and 404 error in browser.
"Failed to load resource: the server responded with a status of 500 (Internal Server Error)"
"_ember_jquery-0ae86c6a7527a99c2b9b8a11521273bd9cb4f7d41bc546df081b7ee94f26d9c3.js:9851 POST http://mydiscourse.cloudapp.azure.com/community/message-bus/9eda601f4d94429aa5bbb21427de4194/poll 404 (Not Found)"
Note: is that because of “http://” just noted while past the error message here.
Could some one tell me what I have missed here or do I need to add some other thing.