LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache default page (https://www.linuxquestions.org/questions/linux-newbie-8/apache-default-page-40169/)

davee 01-03-2003 03:31 AM

apache default page
 
How can I reset the default page?

i.e. the page that is served when the url 'http://localhost' is typed in a browser.

I changed this once, and am wanting to change it again, but can't find what I changed. I thought it was set in the httpd.conf file, but can't see it.

Any ideas?

Dave

irish_rover 01-03-2003 05:27 AM

Depending on your install apache looks in the root web directory for an index file..so you can simply go to that directory and replace the file. Or you can change what files and extensions apache looks for in the httpd.conf file.

MasterC 01-03-2003 09:57 AM

Mine is /var/www/htdocs
Default Slack 8.1 install
Cool

then 01-03-2003 01:03 PM

Re: apache default page
 
Quote:

Originally posted by davee
How can I reset the default page?

I changed this once, and am wanting to change it again, but can't find what I changed. I thought it was set in the httpd.conf file, but can't see it.

Apache loads index.html.en as the default home page. If you want another home page you have 2 options -

* rename the original index.html.en page and put your own page as index.html.

* rename the original index.html.en to something else, put your_own-webpage.html in /apache/htdocs and then put your_own-webpage.html under DirectoryIndex directive in httpd.conf.

<aside>
AFAIK Apache looks for files mentioned under DirectoryIndex directive of httpd.conf for default pages to load.

You can put files like index.html, index.php, default.html, home.html under DirectoryIndex of httpd.conf for Apache to search and load the first one it finds under /apache/htdocs i.e. if it doesn't find index.html it will load index.php or default.html if index.html and index.php are not found.
</aside>

HTH
theN

initself 02-17-2003 04:06 AM

Well then, how do you change that?
 
Quote:

Originally posted by MasterC
Mine is /var/www/htdocs
Default Slack 8.1 install
Cool

I can't figure out how to override this default in the slackware installation and replace that directory with my clean install to /usr/local/apache/htdocs!

Can someone help out?

mb

doublefailure 02-17-2003 04:18 AM

uninstall the pre-installed apache..

does slackware also support rpms?

if not i don't know how to uninstall that thing ..

initself 02-17-2003 09:46 AM

Startup Script
 
Add a line to my startup scripts pointing to the httpd.conf file for the new version. Bingo!

mb


All times are GMT -5. The time now is 04:15 PM.