Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Apache setup

Metallica

Posted 22 December 2008 - 07:57 AM

This is probably some simple detail I have overlooked, but I'm about to give up.

I have installed Windows 2003 and XAMPP on an old server for a friend of mine who wanted to have his own webserver.Everything went reasonably well and the website I put up works on the server itself.

But ... when I connect to the server from another machine in my network (using the IP of the server) the index file loads, but all the images, stylesheet etc, which are in subfolders do not load.I looked at the source and all the links look like this:http://127.0.0.1/images/front.jpg etc. That explains why the server can find them and my computer doesn't, but what have I done wrong?

I have edited httpd.conf in two places to point to the correct folder (should have worked because it finds the index file)

For giggles I switched from Apache to IIS and I get a Bad request (Invalid Hostname) reply when I try to connect.

The FileZilla connection for ftp works brilliant.

If you need any more information to help, please ask. I wanted to finish this project yesterday.

Metallica

Posted 23 December 2008 - 11:18 PM

The site is based on a Wordpress blog.The paths are coded in php like this:<img src="<?php bloginfo('url'); ?>/images/front.jpg">

So I guess the good news is there might be one central place where I can change it.Someone was so kind to give me a link to this:http://codex.wordpre...dress_.28URL.29I will try that tonight and keep you all posted.