LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2004, 02:40 PM   #1
Thrifty
Member
 
Registered: Jan 2004
Location: Durham, North Carolina
Distribution: SuSe
Posts: 36

Rep: Reputation: 15
Setting up a block, for this area is under construction.


Don't know if I phrased that quite right.

Anyway, here's the deal: I want to shut off a portion of the company's web site; just one directory, for a few hours. Let's call it website.net/foo. For those few hours, anyone who fires up a web browser and mosies on over to website.net/foo will be redirected to a page that says something like "We're sorry. This page is temporarily undergoing some maintenance. Please check back later." The goal is that people won't see the contents of the page getting all messed up and write in with complaints and such.

So how can I do this?
 
Old 04-20-2004, 02:57 PM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
I assume you are using the apache webserver for this. Well you could look in the documentation under url redirection.

Probably something like this would work:

Redirect permanent /foo/ http://www.example.com/bar/
 
Old 04-20-2004, 03:14 PM   #3
digitalgravy
Member
 
Registered: Nov 2003
Posts: 86

Rep: Reputation: 15
You could also re-name the index file to something else and you could stick up an "Under Construction" page as your index.html or .php or whatever your index file it is. Then when your are done, just delete ther under construction page and rename the updated index file back to index.html/php or whatever.

But it is iffy to update a live site, you could easily set up a testing server, sync all of the files and then make your updates on your testing server. When you are done, you can upload updated files to the live server.

Hope this helps.
 
Old 04-21-2004, 09:01 AM   #4
Thrifty
Member
 
Registered: Jan 2004
Location: Durham, North Carolina
Distribution: SuSe
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by digitalgravy
You could also re-name the index file to something else and you could stick up an "Under Construction" page as your index.html or .php or whatever your index file it is. Then when your are done, just delete ther under construction page and rename the updated index file back to index.html/php or whatever.

But it is iffy to update a live site, you could easily set up a testing server, sync all of the files and then make your updates on your testing server. When you are done, you can upload updated files to the live server.

Hope this helps.
Yep, development server is firmly in place. All the modifications will be happening there.

Actually, I did something similar to your suggestion, in that I moved the index file elsewhere, set up a symbolic link by the same name that points to the under construction page, and will move the index file back afterwards.

Thanks for the help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTables and PPTPD :S (to block or not to block) thewonka Linux - Networking 0 03-24-2005 06:58 PM
Reiserfs: bad block in sysem area (usage of dd_rescue) kbcnetau Linux - General 0 12-02-2004 07:03 PM
xine.de is under construction - how to install - xine-lib-1-rc3a.tar.gz sanjaya Linux - Software 1 02-13-2004 08:36 PM
Setting ip tables to block all traffic LinuxBAH Linux - Security 1 02-07-2004 06:15 AM
Block 0 in primary superblock/group descriptor area bad ZilverZtream Linux - Hardware 0 08-10-2003 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration