Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 28th, 2001, 10:50 AM
apache apache is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Posts: 10 apache User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how to make the default page an .asp

I notice that the default page is an .html file. I want to run a default .asp file. How would I configure the settings to read the defaut to the filename that i want.

Reply With Quote
  #2  
Old November 28th, 2001, 11:11 AM
Pointman Pointman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 1999
Posts: 52 Pointman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
Index page

Look in the httpd.conf file for the mod_dir section. It will look something like:

<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.cgi
</IfModule>

Add index.asp to the end of the list:

<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.cgi index.asp
</IfModule>

Run configtest and restart Apache.

This will make the change server wide. If you are only wanting index.asp to be the default index page in a particular virtual host, add DirectoryIndex index.asp to the VirtualHost section instead.

Good luck!

Reply With Quote
  #3  
Old November 28th, 2001, 11:16 AM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 18
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
Little notice, they go in order of 'importants' so dont put both index.html and index.asp if you want only .asp to be the index one (or put .asp before .html in config)
__________________
And you know I mean that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > how to make the default page an .asp


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT