Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   Apache config error - help? (https://www.cableforum.uk/board/showthread.php?t=33622832)

jrhnewark 24-10-2007 01:24

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? :erm:

punky 24-10-2007 01:33

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

BBKing 24-10-2007 09:16

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

AbyssUnderground 24-10-2007 09:32

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.

Graham M 24-10-2007 10:05

Re: Apache config error - help?
 
Quote:

Originally Posted by AbyssUnderground (Post 34420501)
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!

AbyssUnderground 24-10-2007 10:12

Re: Apache config error - help?
 
Quote:

Originally Posted by Zeph (Post 34420515)
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 ;)

Graham M 24-10-2007 10:15

Re: Apache config error - help?
 
Precisely... btw how did you know I had an Uncle Bob?

AbyssUnderground 24-10-2007 10:18

Re: Apache config error - help?
 
Quote:

Originally Posted by Zeph (Post 34420531)
Precisely... btw how did you know I had an Uncle Bob?

Oh, didn't you know? I can read minds... :D

Mr_love_monkey 24-10-2007 10:38

Re: Apache config error - help?
 
Quote:

Originally Posted by Zeph (Post 34420531)
Precisely... btw how did you know I had an Uncle Bob?

Strange - my Mother's Brother is also called Robert - maybe we are related?

jrhnewark 25-10-2007 01:12

Re: Apache config error - help?
 
Quote:

Originally Posted by Gavin (Post 34420457)
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.

Graham M 25-10-2007 01:24

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


All times are GMT +1. The time now is 07:23.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum