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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 28th, 2001, 12:52 AM
rob5408 rob5408 is offline
Certified Genius
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: over there
Posts: 77 rob5408 User rank is Private First Class (20 - 50 Reputation Level)rob5408 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 46 m 57 sec
Reputation Power: 7
Send a message via AIM to rob5408
alias / scriptalias help under win2k

when i used to run apache under win98se i had no problem with aliasing directories. i have...

alias /webstuff/ "c:/webstuff/"

scriptalias /webstuff/cgi-bin/ "c:/webstuff/cgi-bin/"

for the real structure of...

-webstuff
-cgi-bin

i get 'forbidden' error and the log tells me execcgi option was not turned on for the cgi-bin directory. however i'm pretty sure the docs said that if i scriptaliased a directory then execcgi would not have to be set (doesn't work even if it is turned on)

i'm almost positive this is the way i had it configured for win98, thanks, rob

Reply With Quote
  #2  
Old September 28th, 2001, 01:42 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
First off, if you alias c:/webstuff/, don't alias/scriptalias something under c:/webstuff/ again. Invent another directory like so:

scriptalias /cgi-bin/ "c:/another_dir/cgi-bin/"

The alias rule in Apache says: When you alias something, it MUST not physically reside under your docroot.

By default, there should be a <Directory> block of your docroot like so:

<Directory "/path/to/docroot">
Options xxxxx
AllowOverride xxxxx
...
</Directory>

If you follow the alias rule, your /path/to/webstuff cannot be /path/to/docroot/to/webstuff. That said, you need to create a new <Directory> block for webstuff:

<Directory "/path/to/webstuff">
Options xxx
AllowOverride xxx
...
</Directory>

>> i get 'forbidden' error and the log tells me

As I said, you can't create two alias paths in the same directory tree.

>> if i scriptaliased a directory then execcgi would not have to be set

Correct.

Reply With Quote
  #3  
Old September 28th, 2001, 01:47 AM
rob5408 rob5408 is offline
Certified Genius
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: over there
Posts: 77 rob5408 User rank is Private First Class (20 - 50 Reputation Level)rob5408 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 46 m 57 sec
Reputation Power: 7
Send a message via AIM to rob5408
thanks

i'll give it a try, why did this seem to work under 98??? bug or something? nice to see someone else up at this hour

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > alias / scriptalias help under win2k


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