LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   server offline page (https://www.linuxquestions.org/questions/linux-newbie-8/server-offline-page-422718/)

ankit_mcgill 03-08-2006 01:10 AM

server offline page
 
hi,

since i am running my website on my own webserver (on laptop running linux) it's not possible to have it up 24x7.

is there a way that i can make a page that gets displayed whenever someone tries to access my website when my laptop is closed ??

thanks
a

TigerOC 03-08-2006 02:25 AM

I am making several assumptions regarding your setup so in general all requests for your domain name would be directed to your ip address (where your modem/router is located). You have 3 basic options;
1. most isp's offer some webspace;
2. your domain registrar probably has a placeholder for your domain name;
3. you have another computer on your own home lan that can run apache;

The first 2 above would require that each time you go to the admin section of the registrar and change the address of the ip to which requests are sent. 3 requires that you change the ip address on the modem/router to which requests are sent.

ankit_mcgill 03-08-2006 09:45 PM

Quote:

Originally Posted by TigerOC
I am making several assumptions regarding your setup so in general all requests for your domain name would be directed to your ip address (where your modem/router is located). You have 3 basic options;
1. most isp's offer some webspace;
2. your domain registrar probably has a placeholder for your domain name;
3. you have another computer on your own home lan that can run apache;

The first 2 above would require that each time you go to the admin section of the registrar and change the address of the ip to which requests are sent. 3 requires that you change the ip address on the modem/router to which requests are sent.

Thanks TigerOC ... i guess i should have explained it in more detail.

I am running my apache serever on my lan laptop and i am using DYNDNS service to update my domain name with my current ip address (my ip is dyanamic) . also i am using dydndns software tool which resides in the taskbar of my xp computer (also on the lan ) which continously updates my ip address.

Now i can acheive what i want by changing the ip address in my dyndns.org account to some static ip where my server offline page resides, the moment i stop my ip address ....

My question is how do i go about doing that assuming i have a static ip address xxx.xxx.xxx.xxx where my server offline page is ????

thanks
a

TigerOC 03-09-2006 08:25 AM

Quote:

Originally Posted by ankit_mcgill
Now i can acheive what i want by changing the ip address in my dyndns.org account to some static ip where my server offline page resides, the moment i stop my ip address ....

You haven't explained the ....
Quote:

My question is how do i go about doing that assuming i have a static ip address xxx.xxx.xxx.xxx where my server offline page is ????
You would have to find someone with an always on system to host a page for you. Change the ip address at dyndns and then stop your xp system updating the address.

ankit_mcgill 03-09-2006 05:21 PM

hey tigerOC,

ok...assuming i find someone that has a static ip address and i put my offline page .

you said that i should change the ip address in my dyndns account and then stop the server

is there a way to do do is using a script...... ????

TigerOC 03-10-2006 02:17 AM

I don't use dyndns but assume they require login. You should be able to update the dyndns account with a script. Have a look for the dyndns scripts used on Linux boxes as it should be possible to modify it for this purpose. You must also stop the app on the xp box from updating the ip address as well.


All times are GMT -5. The time now is 12:48 AM.