Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Web page displays expected content but no CSS loaded |
|
Author |
|
gamattox
Joined: 16 Jan 2019 Posts: 2 Location: USA, Sarasota
|
Posted: Wed 16 Jan '19 19:02 Post subject: Web page displays expected content but no CSS loaded |
|
|
I’m using Apache 2.4.37 to serve web pages in a Win Server 2016 environment along with PHP 7.3 and MySQL 8.
I am unable to present users with webpages that contain CSS. Pages are being served with the intended content but with no CSS styling. Just a bare-bones web page.
All pages load perfectly when on the local server and using localhost. The problem only occurs on the internet side when users access the site using "mysite.com".
Seems like a simple configuration oversite but I'm lost in how to find it.
Thx |
|
Back to top |
|
mraddi
Joined: 27 Jun 2016 Posts: 152 Location: Schömberg, Baden-Württemberg, Germany
|
Posted: Wed 16 Jan '19 19:45 Post subject: |
|
|
Hello gamattox,
What happens when you try to load the CSS-files directly (=entering the URL into your browser's address bar)?
What do you see in your webserver's log file?
Greetings
Matthias |
|
Back to top |
|
gamattox
Joined: 16 Jan 2019 Posts: 2 Location: USA, Sarasota
|
Posted: Wed 16 Jan '19 20:12 Post subject: |
|
|
Hi Matthias,
When the path to the sites CSS file is loaded into a browser from a user on the internet (not locally) the html content of the style.css file is displayed.
The Apache error log is empty and the Access log contains:
::1 - - [16/Jan/2019:13:09:03 -0500] "POST /dailymarkettrends/wp-admin/admin-ajax.php HTTP/1.1" 200 47
47.205.99.64 - - [16/Jan/2019:13:09:06 -0500] "GET /favicon.ico HTTP/1.1" 200 -
47.205.99.64 - - [16/Jan/2019:13:09:10 -0500] "GET /wp-content/themes/twentyseventeen/style.css HTTP/1.1" 304 -
47.205.99.64 - - [16/Jan/2019:13:09:10 -0500] "GET /favicon.ico HTTP/1.1" 200 -
Gary |
|
Back to top |
|
mraddi
Joined: 27 Jun 2016 Posts: 152 Location: Schömberg, Baden-Württemberg, Germany
|
Posted: Thu 17 Jan '19 23:15 Post subject: |
|
|
Hi Gary,
please check within your browser's developer tools which mime-type the webserver sends to your browser.
It might be something other than "text/css" which prevents the browser from accepting this data as CSS.
In addition there might be some other helpful output in the developer tools that give a hint want is happening.
Greetings
Matthias |
|
Back to top |
|
|
|
|
|
|