GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 21-Feb-2005, 11:47
jnorris jnorris is offline
New Member
 
Join Date: Nov 2003
Posts: 8
jnorris is on a distinguished road

Works fine on laptop, wont work fine on desktop!


Got Apache working fine last year on my laptop with XP for local testing of web designs. Downloaded latest version of Apache onto my new desktop, copied over my previous http.conf and hosts. Guess what?
I compared my httpd with the default one and I am sure (!) it's perfect.

Any link from my index page to each of my local websites appears in the address bar OK but the page doesn't change (no html downloaded). If I type localhost/balloonanimals.co.uk (for instance) it does arrive! But images don't because the links such as /images/piccy.gif refer to localhost and not the domain. Somehow Apache isn't working with the hosts file

I know it will be simple (oh - can't see how macaffee firewall can harm it), so forgive my lengthy post but I guess it is staring me in the face.

httpd
****
Listen 127.0.0.1:80
ServerName localhost

DocumentRoot "C:\Documents and Settings\jon\My Documents\webs"
and again
<Directory "C:\Documents and Settings\jon\My Documents\webs">

and
<VirtualHost *>
ServerName http://www.balloonanimals.co.uk
ServerAlias http://www.balloonanimals.co.uk
ServerAdmin webmaster@balloonanimals.co.uk
DocumentRoot "C:/Documents and Settings/jon/My Documents/webs/balloonanimals.co.uk"
ErrorLog logs/balloonanimals.co.uk-error_log
CustomLog logs/balloonanimals.co.uk-access_log combined
UseCanonicalName off
AddHandler server-parsed .shtml
Options FollowSymLinks +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>
</VirtualHost>

Hosts
*****
127.0.0.1 localhost aquitaine-style.com http://www.aquitaine-style.com balloonanimals.co.uk http://www.balloonanimals.co.uk (all on one line)
  #2  
Old 22-Feb-2005, 22:21
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
I can't see anything obviously wrong with your config either but I am not really concentrating well these days.

What if anything, are the error logs saying?
  #3  
Old 23-Feb-2005, 06:23
jnorris jnorris is offline
New Member
 
Join Date: Nov 2003
Posts: 8
jnorris is on a distinguished road

Logs...


They only show that apache is trying! It seems that everything resolves back to localhost.
In browser:
Type localhost. My index page appears - good.
Type the URL with or without www. - index appears (tho address appears in address bar)
Type localhost/www.domain.com - index page again
Type localhost/domain.com - fine!!

It's as if it wasn't reading the hosts file? Yet it works fine on the laptop - only real difference is that it has Norton and not McAfee on it, but I can't see how that's a problem as apache is working!

Further problem of some images not appearing seems to be down to Dreamweaver templates sometimes using /images/gif.gif and sometimes images/gif.gif. You can imagine how confused I've been.
 
 

Recent GIDBlogLast Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
will my laptop work with doom 3? culejoe Computer Software Forum - Games 4 31-Aug-2004 06:13

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:58.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.