1245: Can not load CSS, js and other media files

xuk***@gmai***** (Google Code) (Is this you? Claim this profile.)
Sept. 21, 2009
What version are you running?
1.0

What's the URL of the page containing the problem?
every page

What steps will reproduce the problem?
1. browse to every page
2.
3.

What is the expected output? What do you see instead?
no CSS, js and other media files are loaded, apache access.log shows 404 error

What operating system are you using? What browser?
windows XP, firefox 3.5 and IE 6

Please provide any additional information below.
Is it a reviewboard problem or just I need to confiture apache properly ?
chipx86
#1 chipx86
Is this a brand new install? And did you run rb-site install?

Was this installed in a dedicated subdomain, or a subdirectory?

Can you provide your Apache config file?
  • +NeedInfo
#2 xuk***@gmai***** (Google Code) (Is this you? Claim this profile.)
  • +
    <VirtualHost *:80>
    	ServerName ltesoftware.innofidei.com
    	DocumentRoot "d:/ReviewBoardData/htdocs"
    	# Error handlers
    	ErrorDocument 500 /errordocs/500.html
    	ErrorDocument 404 /errordocs/500.html
    	# Serve django pages
    	<Location "/">
    		PythonPath "['d:/ReviewBoardData/conf'] + sys.path"
    		SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
    		SetEnv PYTHON_EGG_CACHE "d:/ReviewBoardData/tmp/egg_cache"
    		SetHandler mod_python
    		PythonHandler django.core.handlers.modpython
    		PythonAutoReload On
    		PythonDebug On
    		# Used to run multiple mod_python sites in the same apache
    		# PythonInterpreter reviewboard_ReviewBoardData
    	</Location>
    	# Serve static media without running it through mod_python
    	# (overrides the above)
    	<Location "/media/">
    		SetHandler None
    	</Location>
    	<Location "/errordocs/">
    		SetHandler None
    	</Location>
    	<Directory "d:/ReviewBoardData/htdocs/">
    		AllowOverride All
    	</Directory>
    	
    	<LocationMatch "\.(jpg|gif|png|css|js)$">
          SetH
    +
    #
    # This is the main Apache HTTP server configuration file.  It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    # In particular, see 
    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    # for a discussion of each configuration directive.
    #
    # Do NOT simply read the instructions in here without understanding
    # what they do.  They're here only as hints or reminders.  If you are unsure
    # consult the online docs. You have been warned.  
    #
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path.  If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
    # with ServerRoot set to "C:/Program Files/Apache Software Foundation/Apache2.2" will be interpreted by the
    # server as "C:/Program Files/Apach
#3 xuk***@gmai***** (Google Code) (Is this you? Claim this profile.)
Yes, this is a brand new install, and I have run the rb-site install. I attach the
config file, thank you very much :)
  • +
    <VirtualHost *:80>
    	ServerName ltesoftware.innofidei.com
    	DocumentRoot "d:/ReviewBoardData/htdocs"
    	# Error handlers
    	ErrorDocument 500 /errordocs/500.html
    	ErrorDocument 404 /errordocs/500.html
    	# Serve django pages
    	<Location "/">
    		PythonPath "['d:/ReviewBoardData/conf'] + sys.path"
    		SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
    		SetEnv PYTHON_EGG_CACHE "d:/ReviewBoardData/tmp/egg_cache"
    		SetHandler mod_python
    		PythonHandler django.core.handlers.modpython
    		PythonAutoReload On
    		PythonDebug On
    		# Used to run multiple mod_python sites in the same apache
    		# PythonInterpreter reviewboard_ReviewBoardData
    	</Location>
    	# Serve static media without running it through mod_python
    	# (overrides the above)
    	<Location "/media/">
    		SetHandler None
    	</Location>
    	<Location "/errordocs/">
    		SetHandler None
    	</Location>
    	<Directory "d:/ReviewBoardData/htdocs/">
    		AllowOverride All
    	</Directory>
    	
    	<LocationMatch "\.(jpg|gif|png|css|js)$">
          SetH
    +
    #
    # This is the main Apache HTTP server configuration file.  It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    # In particular, see 
    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    # for a discussion of each configuration directive.
    #
    # Do NOT simply read the instructions in here without understanding
    # what they do.  They're here only as hints or reminders.  If you are unsure
    # consult the online docs. You have been warned.  
    #
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path.  If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
    # with ServerRoot set to "C:/Program Files/Apache Software Foundation/Apache2.2" will be interpreted by the
    # server as "C:/Program Files/Apach
chipx86
#4 chipx86
In your config file, you commented out the aliases for /media. What was the reason
for that? Those are necessary to find the media.
#5 xuk***@gmai***** (Google Code) (Is this you? Claim this profile.)
Hi chipx86,
   I tried to uncomment the aliases, it doesn't work either. :(
   Thank you very much :)
david
#6 david
Did you remember to restart apache after uncommenting the aliases?
david
#7 david
  • -NeedInfo
    +Incomplete