Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-16-2010, 04:48 AM   #1
LQ Newbie
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
Edit index.html file of apache web server

Do I need to restart the webserver if I make any change in the file index.html?
Or should the changes get reflected when I open the page again without restarting the service?
Old 08-16-2010, 04:54 AM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,725

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Depends on what web server you are using. AFAIK if it is apache then you shouldn't need to restart it.

Old 08-16-2010, 06:24 AM   #3
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
You do not need to restart Apache if you do any changes in web content files like html, htm, php etc...

You would need to restart Apache, if you're doing changes in Apache configuration.
Old 08-17-2010, 12:34 AM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,378

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
Note that the 'old' version may remain cached in memory for sometime, unles it gets forced out by another request (similarly on the client browser).
You can force the browser to get the latest by using shift-reload instad of reload; this is supposed to force the server to get a fresh copy, overwriting any cached versions along the way. Same principle as a POST instead of a GET request.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
apache2 folder 'var/www' is not shareable; can not edit the index.html file mcanallyd Linux - Newbie 2 06-18-2009 05:46 PM
Apache 1.3.34 Server on Kubuntu - index.html file permissions? lefty.crupps Linux - Networking 0 09-07-2006 09:59 AM
Apache problem - cannot get index.html file to show nebloof Linux - Software 3 01-15-2005 10:32 PM
Apache index.html edit makes no change dwbrown Linux - Software 2 09-29-2004 11:36 AM
Apache 2.0 search for index.html file pawlub Linux - Software 2 10-28-2003 10:03 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:54 AM.

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