httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernard Hawkes" <Apa...@15ddv.freeserve.co.uk>
Subject [users@httpd] Redirection of external URLs to own file system for offline testing - How?
Date Sat, 17 May 2003 19:29:32 GMT
Possibly not relevant, but I'm running under Windows ME.
I'm running Apache web server version 2.0.45.
I'm running in console mode.
The only use I will be putting it to is to test my website offline.
My website is hosted by freeserve, to be precise:-
http://www.ockdramsoc.fsnet.co.uk
Because of space limitations I'm intending to open a second account:-
http://www.odspics.fsnet.co.uk
to hold a growing library of images.

I envisage a page on the ockdramsoc site containing html like this:-
<a href="http://www.odspics.fsnet.co.uk/previous/1995a/pic1-full.jpg"
target="_blank">
<img
src="http://www.odspics.fsnet.co.uk/previous/1995a/pic1-thumb.jpg"</img></a
>

This will work fine when uploaded but is giving me problems offline. I want
my Apache webserver, whenever it sees "http://www.odspics.fsnet.co.uk/", to
look in my own file system rather than try to connect to the Internet.

I have spent several hours looking at the documentation on the Apache site
without any success. I had a look at "Redirect" and "VirtualHost" but
either I'm on the wrong lines, there's other things that need setting or
I'm not using them correctly. (Probably all three as I'm very new to this.)
I wouldn't say no to a full solution but tell me what directives I need to
set and I'll have a go at working out the rest from the manual.

I've hardly touched httpd.conf. Things I've set are:-
DocumentRoot "D:/WebsiteODS"
DirectoryIndex home.htm
ServerAdmin webmaster@ockdramsoc.fsnet.co.uk
ServerName bernard2.ockdramsoc.fsnet.co.uk:80

This configuration is mostly working. I type in a URL of http://localhost
into my browser and my site appears as I would expect it to. The only
problem I have is with external URLs.

Bernard.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message