LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-13-2011, 12:23 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Lighttpd - how to name the index.html of additional domain?


Hi folks,

For the 1st domain,say domain1

I name the index file as:
/var/www/index.html
/home/lighttpd/default/http/index.html
/home/lighttpd/domain1/http/index.html

3 identical files. It works seamlessly. On browser its webpage can be evoked.

Now I add another domain, say domain2. How shall I name its index files?

/var/www/index.domain2.html ?
/home/lighttpd/default/http/index.domain2.html ?
/home/lighttpd/domain2/http/index.domain2.html ?

TIA

B.R.
satimis
 
Old 04-18-2011, 01:22 PM   #2
xaminmo
LQ Newbie
 
Registered: Feb 2010
Location: TX
Distribution: Debian
Posts: 10

Rep: Reputation: 4
change index-file.names for the new domain to use the new index rather than your default.
Quote:
$HTTP["host"] =~ "domain2\.com" {
server.document-root = "/var/www/"
index-file.names = ("index.domain2.html", "index.domain2.htm")
server.error-handler-404 = "/404.domain2.php"
}
 
  


Reply


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
redirect index.php to index.html bittus Linux - Software 6 12-14-2009 11:04 PM
apache index.html doesn't show up but index.php do zoffmann Linux - Server 5 01-28-2008 04:53 PM
adding index.html to /var/www/html not working dannyboy990 Linux - Newbie 1 09-30-2007 09:43 AM
Where to put index.php (or index.html) on Slackware 11.0 moonguide Slackware 3 05-08-2007 07:35 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:58 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