LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   index.html renaming in Apache (https://www.linuxquestions.org/questions/linux-networking-3/index-html-renaming-in-apache-58923/)

SSBN 05-09-2003 12:49 PM

index.html renaming in Apache
 
Can anyone tell me if instead of having index.html as an index file if I could have

Welcome to my company in Fredericton, New Brunswick.htm

As the index file. How would i do it.
I tryed this but it didn't work.

<VirtualHost *>
ServerName hometectest.com
DocumentRoot /var/www/mycompany
DirectoryIndex Welcome to my company in Fredericton, New Brunswick.htm
</VirtualHost>

david_ross 05-09-2003 12:57 PM

Yes - Just change:
DirectoryIndex Welcome to my company in Fredericton, New Brunswick.htm

to:
DirectoryIndex "Welcome to my company in Fredericton, New Brunswick.htm"

Spaces in a DirectoryIndex directive denote separate files.

evilRhino 05-09-2003 07:57 PM

another idea:
ln -s "Welcome to my company in Fredericton, New Brunswick.htm" index.html

just creates a symbolic link to the file


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