Forum Moderators: phranque

Message Too Old, No Replies

images won't display

images won't display

         

tlgates

9:49 pm on Jan 24, 2005 (gmt 0)

10+ Year Member



I am using apache 2 with tomcat 5 on a redhat linux server. I have my virtual hosts set up and the pages are serving fine with the exception of the images that apache is suppose to be serving. I get the red x boxes and apache isn't finding my images/css files. I have chmod the files and directory to 755. I have chown the files and directory to be <username>:apache.

Here is my httpd.conf file:


DocumentRoot "/var/www/html"
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

DirectoryIndex index.html index.html.var index.htm index.jsp
AccessFileName .htaccess

NameVirtualHost *:80
#
<VirtualHost *:80>
ServerName localhost
ServerAlias test.example.com
ServerAdmin webmaster@example.com
DocumentRoot /var/www/html
ErrorLog /var/www/example/logs/errorlog
CustomLog /var/www/example/logs/access_log common
</VirtualHost>

<VirtualHost *:80>
ServerName test.example_bs.com
ServerAdmin tgates@example.com
DocumentRoot /var/www/html
ErrorLog /var/www/html/logs/testbs_errorlog
CustomLog /var/www/html/logs/testbs_access_log common
</VirtualHost>

I can't get the images & css to be served by apache under http or https.

I also can't get it to bring up the index.jsp file of the directory so that when I do test.benefitserver.com/benefitserver that it takes me to test.benefitserver.com/benefitserver/index.jsp.

Please help. I'm at my wits end!

[edited by: jdMorgan at 9:56 pm (utc) on Jan. 24, 2005]
[edit reason] Obscured specifics per TOS. [/edit]