SunQuest
           Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

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 Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old July 12th, 2005, 09:09 PM
Tongo Tongo is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 91 Tongo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 42 m 49 sec
Reputation Power: 2
Send a message via ICQ to Tongo
Apache, conditional Aliases?

Hello all,

I'm running Apache 2.0 on WinXP Pro for a testing machine. In apache's httpd.conf file I Alias a removable thumb drive so I can access it from a web browser. I do something like this:
Code:
Alias /removable_drive/ "b:/"
 
<Directory "b:/">
     Options Indexes MultiViews
     AllowOverride None
     Order allow,deny
     Allow from all
</Directory>


Now, sometimes when Apache starts up, the thumb drive isn't plugged in, causing apache to abort. Is there anyway to make the Alias and the Directory directives coniditional based on the existance of "b:"?

Thanks!

Reply With Quote
  #2  
Old July 19th, 2005, 06:00 PM
defvayne23 defvayne23 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: TX
Posts: 218 defvayne23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 27 m 42 sec
Reputation Power: 2
Send a message via AIM to defvayne23 Send a message via Yahoo to defvayne23
RE: Apache, conditional Aliases?

Try creating two apache servers. I think you can have them poiting to an external htdocs folder so they both run off of the same folder, but one is a thumb server and the other is not.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > Apache, conditional Aliases?


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 5 hosted by Hostway