Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Odd apache configuration error?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
apache error log - Hi there, In my webapp I do have dynamic file names. This is made by 404 redirect. Apache redirects any 404 error to a php script where I decide where to redirect the surfer. For example That works However there is a..

Apache & Error log - Hi, I am wondering how to get the referer of a page that contains an error. I explain with an example. Suppose I have a page a.php that contains an img If the image is missing, I will get in the error log sth like : [Mon Sep 6

error in apache ?? - hello my english is very poor i have a big problem $handle = or !"); ?> When i want connect to sybase (on w2k), serwer www (apache 1.3.29..

Apache 2.0.49 error - Hello together! I have a very problem on my a Suse Linux 9.1 with Apache 2.0.49: After running a few hours the memory usage of the slows down the whole system, not only when I put a ps aux | grep apache I..

Apache error - I am using Solaris8, Weblogic 7sp2 and IBM HTTPD server. Getting the following error [error] [os error=0, line 199 of Any help is Thanks
Author Message
donlcl

External


Since: Dec 22, 2004
Posts: 6



(Msg. 1) Posted: Wed Jan 05, 2005 8:21 am
Post subject: Odd apache configuration error?
Archived from groups: alt>apache>configuration (more info?)

Hi,

I've set up apache 2.0.52 with the following config:
DirectoryIndex index.html index.php index.html.var

I am also using virtual hosting.

When I load my web site as:
http://www.mydomain.com

The page loads but all my images look broken (image is not available).

When I load my web site as:
http://www.mydomain.com/index.php

All is OK.

I don't see anything wrong with my DirectoryIndex statement so why is
this happening?

Thanks,
Don

 >> Stay informed about: Odd apache configuration error? 
Back to top
Login to vote
donlcl

External


Since: Dec 22, 2004
Posts: 6



(Msg. 2) Posted: Wed Jan 05, 2005 8:59 am
Post subject: Re: Odd apache configuration error? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi again,

I think it is a ServerName configuration problem.

http://www.mydomain.com
serves up broken images

http://www.mydomain.com/
works fine.

I ahve configured ServeName in my virtaul hosts but still not working.
Below is a snippet from my httpd.conf file. Any idea?

Listen 80
Listen 8080

<VirtualHost *:80>
ServerAdmin webmaster RemoveThis @domain.ca
DocumentRoot /var/www/domaint.ca/html
ServerName www.domain.ca
ErrorLog /var/www/domain.ca/log/domain.ca-error_log
CustomLog /var/www/domain.ca/log/domain.ca-access_log common
</VirtualHost>

<VirtualHost *:8080>
ServerAdmin webmaster RemoveThis @domain.ca
DocumentRoot /var/www/domain.com/html
ServerName www.domain.ca
ErrorLog /var/www/domain.ca/log/domain.ca-error_log
CustomLog /var/www/domain.ca/log/domain.ca-access_log common
</VirtualHost>

 >> Stay informed about: Odd apache configuration error? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 3) Posted: Wed Jan 05, 2005 12:35 pm
Post subject: Re: Odd apache configuration error? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-01-05, Don <donlcl DeleteThis @yahoo.com> wrote:
 > The page loads but all my images look broken (image is not available).

Check how your images are loaded then. Maybe you have an index.html
that is loaded first and screw up things.

Davide

--
Windows found - Remove? (Y)es (S)ure (F)ine (O)K<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Odd apache configuration error? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Wed Jan 05, 2005 1:35 pm
Post subject: Re: Odd apache configuration error? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-01-05, Don <donlcl RemoveThis @yahoo.com> wrote:
 ><VirtualHost *:80>
 > ServerAdmin webmaster RemoveThis @domain.ca
 > DocumentRoot /var/www/domaint.ca/html
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.domain.ca</font" target="_blank">www.domain.ca</font</a>>
 > ErrorLog /var/www/domain.ca/log/domain.ca-error_log
 > CustomLog /var/www/domain.ca/log/domain.ca-access_log common
 ></VirtualHost>

Usually, every <VirtualHost > block should have a <Directory >
block with details about the DocumentRoot of such VHost.
Note also that there are many problems with PHP if you have
also Multiviews configured. Basically the server doesn't know anymore
if he have to serve a page or a directory.

See also the FAQ about trailing slashes.

Davide

--
All programs evolve until they can send email. -- Richard Letts
Except Microsoft Exchange. -- Art<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Odd apache configuration error? 
Back to top
Login to vote
donlcl

External


Since: Dec 22, 2004
Posts: 6



(Msg. 5) Posted: Wed Jan 05, 2005 2:02 pm
Post subject: Re: Odd apache configuration error? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Well, I did a google search and can;t come up with any examples or docs
of using <Directory> blocks within <VirtualHost> blocks. This must be
something new with apache 2 as my old apache 1.3 server on RedHat 7.3
never suffered from the problem that I am currently experiencing.

I did change the line:
from <VirtualHost *:80>
to (ip) <VirtualHost xx.xx.xx.xx:80>

and uncommented:

NameVirtualHost xx.xx.xx.xx:80
NameVirtualHost xx.xx.xx.xx:8080

But no luck. Multiviews are not configured. As per the FAQ, I added
the ServerName directive but still no luck. I am also NOT using the
alias directive for this directory.

still stumped,
Don
 >> Stay informed about: Odd apache configuration error? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 6) Posted: Thu Jan 06, 2005 1:35 am
Post subject: Re: Odd apache configuration error? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-01-05, Don <donlcl.DeleteThis@yahoo.com> wrote:
 > something new with apache 2 as my old apache 1.3

Are you aware of the fact that on the PHP site they suggest to not use
php+apache2 in production environment?

Davide

--
Microsoft gives you Windows... Linux gives you the whole house.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Odd apache configuration error? 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]