Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Stylesheets don't load on remote access (no replies)

$
0
0
Hey guys,

I'm trying to make my project accessible to other devices on my local network.

When I access my website via another device, the page loads, but with no styling, and I can't figure out why.

It's a wordpress site.

Here is the contents of my httpd-vhosts.config. The first entry I left as is. The second entry is so that I can access my project on the same computer more easily. The third entry is my attempt to make it remotely accessible.

# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName 30days.here
ServerAlias 30days.here
DocumentRoot "${INSTALL_DIR}/www/wordpress/"
<Directory "${INSTALL_DIR}/www/wordpress/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost 192.168.178.185:80>
DocumentRoot "${INSTALL_DIR}/www/wordpress/"
<Directory "${INSTALL_DIR}/www/wordpress/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>


In my httpd.conf I changed my server name from localhost to my IP address, 192.168.178.185, and I set Require all granted.

Any clue what I'm doing wrong?

Again, if I navigate to 192.168.178.185 from another device, the page loads, but the stylesheets don't.

Thanks for the help.

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>