Wordpress serving PHP but not CSS or JS

Posted by Jason on Server Fault See other posts from Server Fault or by Jason
Published on 2013-10-24T19:53:34Z Indexed on 2013/10/24 21:57 UTC
Read the original article Hit count: 223

Filed under:
|
|

I'm trying to set up an Amazon EC2 instance to run a Django app and a WP instance side by side, differing only by the incoming URL.

Initially, accessing the site via mysite.com/wordpress worked, but I also needed to catch the incoming requests from a subdomain address blog.mysite.com. To do that, I created a default file in /etc/apache2/sites-enabled and included two virtualhost directives, one of which was

<VirtualHost *:80>
   ServerName www.blog.mysite.com

   <Directory /var/www/wordpress>
     Order deny,allow
     Allow from all
   </Directory>
</VirtualHost>

This created some errors with the other virtualhost, so I restored the default 000-default file configuration and restarted.

Now, accessing mysite.com/wordpress takes forever, and even then the CSS and JS files are not loading. Iside the Firebug Net tab, I can see the HTML response, but the CSS and JS files are not loading at all.

What happened here?

© Server Fault or respective owner

Related posts about apache2

Related posts about virtualhost