Forum Moderators: phranque

Message Too Old, No Replies

apache configuration

         

morfeas

11:44 am on Mar 21, 2009 (gmt 0)

10+ Year Member



hello
i am newbie to this forum and i have a question
for apache web server
can i configure apache to serve a specific page
eg my.html every time a computer of my network
requests a page (every page)?
my server runs on a local network with ip 192.168.1.1
i want any machine with 192.168.1.#*$! ip to be able to
view only my.html.
any conputer in my local network opens a browser
my.html have to served.
thanks a lot

g1smd

7:20 pm on Mar 21, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, it is possible, by setting up a redirect that captures all URL requests except for that one and redirects to this one.

morfeas

8:42 pm on Mar 21, 2009 (gmt 0)

10+ Year Member



thnaks a lot for your quick answer
i would be grateful if you could
explain me in details how i can do that

g1smd

10:39 pm on Mar 21, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



We can help you fix your code.

What have you got so far?

morfeas

11:56 am on Mar 22, 2009 (gmt 0)

10+ Year Member



i am sorry about that but i
dont have any code so far
if there is a mannual or tutorial ?
i ve google it but could not find
find anything sinilar only site redirection
plz help me

g1smd

5:01 pm on Mar 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In this case the 'site' or hostname will simply be the IP address.

The rest of the code will be almost exactly the same.

morfeas

5:38 pm on Mar 22, 2009 (gmt 0)

10+ Year Member



because i cannot understand i will explain again
what i want to do and please answer again if that
could be done

server ip 192.168.1.1
host 1 ip 192.168.1.2
host 2 ip 192.168.1.3 etc
when host 2 192.168.1.3 open firefox
and requests www.google.com (or anything else)
i want the server to answer with its default page
index.html
and the client not see www.google.com but
192.168.1.1/index.html

g1smd

5:50 pm on Mar 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Ah. That's not 'any page' but 'any site'.

You can't do that by just changing stuff on the one machine. You need to get at the DNS for the whole network, and/or the HOSTS file on all of the other machines.