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;
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).
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
add a comment |
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).
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
To make it even worse, sometimes it works sometimes it doesnt!
– Muneeb Zulfiqar
Apr 9 '18 at 8:28
add a comment |
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).
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
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).
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
nginx centos asp.net
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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 &
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 &
add a comment |
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 &
add a comment |
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 &
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 &
answered May 15 at 5:01
Muneeb ZulfiqarMuneeb Zulfiqar
1013
1013
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
To make it even worse, sometimes it works sometimes it doesnt!
– Muneeb Zulfiqar
Apr 9 '18 at 8:28