Apache config error - help?
24-10-2007, 01:24
|
#1
|
|
Inactive
Join Date: Aug 2004
Location: London
Posts: 1,267
|
Apache config error - help?
Anyone with a keen eye for mistakes around? I'm trying to do some work on my Apache server (Win32) without much luck:
Code:
<IfModule alias_module>
#
# Redirect: Allows you to tell clients about documents that used to
# exist in your server's namespace, but do not anymore. The client
# will make a new request for the document at its new location.
# Example:
# Redirect permanent /foo http://Zoidberg/bar
#
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
#
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a <Directory> section to allow access to
# the filesystem path.
<Directory "C:/Documents and Settings/Admin/My Documents">
Alias /emptytest1 /foldertest/test2
</Directory>
Hopefully it seems quite simple to see what I'm trying to do - I'm trying to point http://server/emptytest1 to C:/Do'Settings/Admin/MyDocuments/foldertest/test2
However, every time I try and restart the server with this config, it reports an error until I remove the "Alias /" line - the <Dir> and </Dir> lines are fine.
Any ideas?
|
|
|
24-10-2007, 01:33
|
#2
|
|
Inactive
Join Date: Jun 2003
Age: 44
Posts: 14,750
|
Re: Apache config error - help?
You're formatting it like linux when you are using windows.
Change it to:
Alias /emptytest1 C:/Documents and Settings/Admin/MyDocuments/foldertest/test2
|
|
|
24-10-2007, 09:16
|
#3
|
|
R.I.P.
Join Date: Jun 2003
Location: London
Services: 20Mb VM CM, Virgin TV
Posts: 5,983
|
Re: Apache config error - help?
As a matter of interest, does removing the first / from the Alias make any difference?
Quote:
|
Alias /emptytest1 /foldertest/test2
|
to
Quote:
|
Alias /emptytest1 foldertest/test2
|
|
|
|
24-10-2007, 09:32
|
#4
|
|
Inactive
Join Date: Oct 2005
Location: Merseyside
Age: 37
Services: BT Infinity Option 2, HH5, synced at maximum 80Mbps/20Mbps.
Posts: 2,221
|
Re: Apache config error - help?
You might be better off using other server software if you're on Windows. Apache has never been great for Win32.
I use Abyss Web Server. It has a GUI console, its < 2mb in size, supports nearly every scripting language you can think of including ASP.NET. Its great for people who have no idea what they're doing too (not saying you don't  )
www.aprelium.com/downloads if you want to try it.
|
|
|
24-10-2007, 10:05
|
#5
|
|
-
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+
Tivo
V-Box
VM 60MBit
Posts: 13,365
|
Re: Apache config error - help?
Quote:
Originally Posted by AbyssUnderground
You might be better off using other server software if you're on Windows. Apache has never been great for Win32.
I use Abyss Web Server. It has a GUI console, its < 2mb in size, supports nearly every scripting language you can think of including ASP.NET. Its great for people who have no idea what they're doing too (not saying you don't  )
www.aprelium.com/downloads if you want to try it.
|
Can I say PROMO! There's absolutely nothing wrong with Apache on Windows, I use it all the time and if you're not that experienced with setting up a Apache/MySQL/PHP environment (if you need them), then I recommend http://www.wampserver.com/en/ as it installs everything at once and is easy to get going!
|
|
|
24-10-2007, 10:12
|
#6
|
|
Inactive
Join Date: Oct 2005
Location: Merseyside
Age: 37
Services: BT Infinity Option 2, HH5, synced at maximum 80Mbps/20Mbps.
Posts: 2,221
|
Re: Apache config error - help?
Quote:
Originally Posted by Zeph
Can I say PROMO! There's absolutely nothing wrong with Apache on Windows, I use it all the time and if you're not that experienced with setting up a Apache/MySQL/PHP environment (if you need them), then I recommend http://www.wampserver.com/en/ as it installs everything at once and is easy to get going!
|
There is nothing wrong with it no, but its a pain to configure and it has its issues. On Linux its just a case of sudo apt-get install apache2 and off you go but Windows isn't so easy when it comes to Apache. Tried it myself and couldn't be bothered with its text file based configuration. This day and age it still gets me that any program uses them...
WAMP will work great for basic stuff but if you need ultra configurable options you need to do it properly. If its a bog standard server setup you're after, then bobs your uncle
|
|
|
24-10-2007, 10:15
|
#7
|
|
-
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+
Tivo
V-Box
VM 60MBit
Posts: 13,365
|
Re: Apache config error - help?
Precisely... btw how did you know I had an Uncle Bob?
|
|
|
24-10-2007, 10:18
|
#8
|
|
Inactive
Join Date: Oct 2005
Location: Merseyside
Age: 37
Services: BT Infinity Option 2, HH5, synced at maximum 80Mbps/20Mbps.
Posts: 2,221
|
Re: Apache config error - help?
Quote:
Originally Posted by Zeph
Precisely... btw how did you know I had an Uncle Bob?
|
Oh, didn't you know? I can read minds...
|
|
|
24-10-2007, 10:38
|
#9
|
|
Inactive
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
|
Re: Apache config error - help?
Quote:
Originally Posted by Zeph
Precisely... btw how did you know I had an Uncle Bob?
|
Strange - my Mother's Brother is also called Robert - maybe we are related?
|
|
|
25-10-2007, 01:12
|
#10
|
|
Inactive
Join Date: Aug 2004
Location: London
Posts: 1,267
|
Re: Apache config error - help?
Quote:
Originally Posted by Gavin
You're formatting it like linux when you are using windows.
Change it to:
Alias /emptytest1 C:/Documents and Settings/Admin/MyDocuments/foldertest/test2
|
Hmm, that seems to be moving in the right direction, but now I get a 403 Forbidden with
Alias /emptytest12 C:/atesting/test1
Any ideas what could be causing that? The Alias path definitely exists...
Thanks for all the advice.
|
|
|
25-10-2007, 01:24
|
#11
|
|
-
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+
Tivo
V-Box
VM 60MBit
Posts: 13,365
|
Re: Apache config error - help?
Stick
Allow From All
below the Alias statement, see how that goes, if not it could be that the web server doesnt have permission to read from that folder
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 07:26.
|