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 |
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.
|
Mine is /var/www/htdocs
Default Slack 8.1 install Cool |
Re: apache default page
Quote:
* 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 |
Well then, how do you change that?
Quote:
Can someone help out? mb |
uninstall the pre-installed apache..
does slackware also support rpms? if not i don't know how to uninstall that thing .. |
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. |