Nignx Reverse Proxy not loading css and js files.Trouble with nginx and serving from multiple directories under the same domainnginx redirect issue with upstream configurationNginx proxy pass works for https but not httpnginx load balancer rewrite to listen portnginx proxy redirecting request to different proxyNginx subversion commit failureNginx/Apache: set HSTS only if X-Forwarded-Proto is httpsNginX + WordPress + SSL + non-www + W3TC vhost config file questionsnginx reverse proxy hide login query also on 301 redirect or full qualified urlNginx reverse proxy to many local servers + webserver duty

What F1 in name of seeds/varieties means?

If a person had control of every single cell of their body, would they be able to transform into another creature?

1960s sci-fi novella with a character who is treated as invisible by being ignored

Canon 70D often overexposing or underexposing shots

Which noble houses were destroyed during the Game of Thrones?

Can non-English-speaking characters use wordplay specific to English?

What are the benefits of cryosleep?

What does uniform continuity mean exactly?

Is there an evolutionary advantage to having two heads?

Crossing US border with music files I'm legally allowed to possess

How were these pictures of spacecraft wind tunnel testing taken?

Why doesn't the Earth's acceleration towards the Moon accumulate to push the Earth off its orbit?

Have I been doing real analysis incorrectly?

Uses of T extends U?

The Passive Wisdom (Perception) score of my character on D&D Beyond seems too high

What are the problems in teaching guitar via Skype?

Is my router's IP address really public?

Where is the logic in castrating fighters?

What is the 中 in ダウンロード中?

How to prevent bad sectors?

Leading and Suffering Numbers

Black-and-white film where monster/alien gets fried

Yandex Programming Contest: Alarms

What's the connection between "kicking a pigeon" and "how a bill becomes a law"?



Nignx Reverse Proxy not loading css and js files.


Trouble with nginx and serving from multiple directories under the same domainnginx redirect issue with upstream configurationNginx proxy pass works for https but not httpnginx load balancer rewrite to listen portnginx proxy redirecting request to different proxyNginx subversion commit failureNginx/Apache: set HSTS only if X-Forwarded-Proto is httpsNginX + WordPress + SSL + non-www + W3TC vhost config file questionsnginx reverse proxy hide login query also on 301 redirect or full qualified urlNginx reverse proxy to many local servers + webserver duty






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Hi I am running dotnet core on CentOS 7 with nginx reverse proxy. Following are my configurations.



 server 
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name freebitcoins.zone www.freebitcoins.zone;
root /usr/share/nginx/html;

ssl_certificate "/home/Ssl/freebitcoins.zone.crt";
ssl_certificate_key "/home/Ssl/freebitcoins.zone.key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;


location /
autoindex on;
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;


location /websocket/

proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

error_page 404 /404.html;
location = /40x.html


error_page 500 502 503 504 /50x.html;
location = /50x.html


server
listen 80;
listen [::]:80;
server_name freebitcoins.zone www.freebitcoins.zone;
return 301 https://$server_name$request_uri;



The problem I am facing is , its not loading css or js files (all static).
enter image description here



I do get the following errors in Asp.net Core Logging.



info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.7387ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://freebitcoins.zone/web_assets/images/logo.png
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.3727ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://freebitcoins.zone/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.5379ms 404


Please help me what I have done wrong or whats the issue. Its eating my head for 3 days now.










share|improve this question






















  • To make it even worse, sometimes it works sometimes it doesnt!

    – Muneeb Zulfiqar
    Apr 9 '18 at 8:28

















0















Hi I am running dotnet core on CentOS 7 with nginx reverse proxy. Following are my configurations.



 server 
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name freebitcoins.zone www.freebitcoins.zone;
root /usr/share/nginx/html;

ssl_certificate "/home/Ssl/freebitcoins.zone.crt";
ssl_certificate_key "/home/Ssl/freebitcoins.zone.key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;


location /
autoindex on;
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;


location /websocket/

proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

error_page 404 /404.html;
location = /40x.html


error_page 500 502 503 504 /50x.html;
location = /50x.html


server
listen 80;
listen [::]:80;
server_name freebitcoins.zone www.freebitcoins.zone;
return 301 https://$server_name$request_uri;



The problem I am facing is , its not loading css or js files (all static).
enter image description here



I do get the following errors in Asp.net Core Logging.



info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.7387ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://freebitcoins.zone/web_assets/images/logo.png
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.3727ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://freebitcoins.zone/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.5379ms 404


Please help me what I have done wrong or whats the issue. Its eating my head for 3 days now.










share|improve this question






















  • To make it even worse, sometimes it works sometimes it doesnt!

    – Muneeb Zulfiqar
    Apr 9 '18 at 8:28













0












0








0








Hi I am running dotnet core on CentOS 7 with nginx reverse proxy. Following are my configurations.



 server 
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name freebitcoins.zone www.freebitcoins.zone;
root /usr/share/nginx/html;

ssl_certificate "/home/Ssl/freebitcoins.zone.crt";
ssl_certificate_key "/home/Ssl/freebitcoins.zone.key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;


location /
autoindex on;
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;


location /websocket/

proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

error_page 404 /404.html;
location = /40x.html


error_page 500 502 503 504 /50x.html;
location = /50x.html


server
listen 80;
listen [::]:80;
server_name freebitcoins.zone www.freebitcoins.zone;
return 301 https://$server_name$request_uri;



The problem I am facing is , its not loading css or js files (all static).
enter image description here



I do get the following errors in Asp.net Core Logging.



info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.7387ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://freebitcoins.zone/web_assets/images/logo.png
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.3727ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://freebitcoins.zone/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.5379ms 404


Please help me what I have done wrong or whats the issue. Its eating my head for 3 days now.










share|improve this question














Hi I am running dotnet core on CentOS 7 with nginx reverse proxy. Following are my configurations.



 server 
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name freebitcoins.zone www.freebitcoins.zone;
root /usr/share/nginx/html;

ssl_certificate "/home/Ssl/freebitcoins.zone.crt";
ssl_certificate_key "/home/Ssl/freebitcoins.zone.key";
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;

# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;


location /
autoindex on;
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;


location /websocket/

proxy_pass http://localhost:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

error_page 404 /404.html;
location = /40x.html


error_page 500 502 503 504 /50x.html;
location = /50x.html


server
listen 80;
listen [::]:80;
server_name freebitcoins.zone www.freebitcoins.zone;
return 301 https://$server_name$request_uri;



The problem I am facing is , its not loading css or js files (all static).
enter image description here



I do get the following errors in Asp.net Core Logging.



info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.7387ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://freebitcoins.zone/web_assets/images/logo.png
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.3727ms 404
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://freebitcoins.zone/favicon.ico
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
Request finished in 0.5379ms 404


Please help me what I have done wrong or whats the issue. Its eating my head for 3 days now.







nginx centos asp.net






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 9 '18 at 7:39









Muneeb ZulfiqarMuneeb Zulfiqar

1013




1013












  • To make it even worse, sometimes it works sometimes it doesnt!

    – Muneeb Zulfiqar
    Apr 9 '18 at 8:28

















  • To make it even worse, sometimes it works sometimes it doesnt!

    – Muneeb Zulfiqar
    Apr 9 '18 at 8:28
















To make it even worse, sometimes it works sometimes it doesnt!

– Muneeb Zulfiqar
Apr 9 '18 at 8:28





To make it even worse, sometimes it works sometimes it doesnt!

– Muneeb Zulfiqar
Apr 9 '18 at 8:28










1 Answer
1






active

oldest

votes


















0














I figured it out. Anyone who is stuck here. The thing is simple.



dotnet /home/freeExWeb/freeExWeb.dll &


This will not load css or js files for some reason.



But if you run the dotnet process from its own directory. Woala!



cd /home/freeExWeb/
dotnet freeExWeb.dll &





share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f906699%2fnignx-reverse-proxy-not-loading-css-and-js-files%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I figured it out. Anyone who is stuck here. The thing is simple.



    dotnet /home/freeExWeb/freeExWeb.dll &


    This will not load css or js files for some reason.



    But if you run the dotnet process from its own directory. Woala!



    cd /home/freeExWeb/
    dotnet freeExWeb.dll &





    share|improve this answer



























      0














      I figured it out. Anyone who is stuck here. The thing is simple.



      dotnet /home/freeExWeb/freeExWeb.dll &


      This will not load css or js files for some reason.



      But if you run the dotnet process from its own directory. Woala!



      cd /home/freeExWeb/
      dotnet freeExWeb.dll &





      share|improve this answer

























        0












        0








        0







        I figured it out. Anyone who is stuck here. The thing is simple.



        dotnet /home/freeExWeb/freeExWeb.dll &


        This will not load css or js files for some reason.



        But if you run the dotnet process from its own directory. Woala!



        cd /home/freeExWeb/
        dotnet freeExWeb.dll &





        share|improve this answer













        I figured it out. Anyone who is stuck here. The thing is simple.



        dotnet /home/freeExWeb/freeExWeb.dll &


        This will not load css or js files for some reason.



        But if you run the dotnet process from its own directory. Woala!



        cd /home/freeExWeb/
        dotnet freeExWeb.dll &






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 15 at 5:01









        Muneeb ZulfiqarMuneeb Zulfiqar

        1013




        1013



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f906699%2fnignx-reverse-proxy-not-loading-css-and-js-files%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Why did Thanos need his ship to help him in the battle scene?Which actor plays Thanos in the Avengers mid-credits scene?Are there economic implications portrayed in comics where the buildings and cities are ruined almost daily?Old X-Men comic where team travels to alien world with a ring-like sun that needs recharging?Why does Ego need help sleeping?Is there an objective answer to who “the strongest Avenger” is?How did Banner get unstuck?Why did Thanos get hit?How did Thanos (or anyone) know the Infinity Stones would give him this power?Did Thanos leave Eitri alive for his after-sales service?In Avengers 1, why does Thanos need Loki?