PDA

View Full Version : My own webserver



jon787
July 24th, 2001, 18:00
I am have Apache installed on my computer and was just wondering one thing. How can I make a PHP or CGI script hosted from an FWP, like f2s.com, check to see if the Apache server is running and if it is redirect people to it, but if not put up a site down message.

LastActionHero
July 25th, 2001, 02:04
I'm not sure whether this will work

But if a server is running usually it returns a http 200 Ok code. You can check that using the script and if you do receive this code back then use it or else use f2s.

jon787
July 25th, 2001, 10:56
Okay I will try that thanks alot. Now I just have to get X Window working in Linux.