Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Apache config error - help?

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

Apache config error - help?
Reply
 
Thread Tools
Old 24-10-2007, 01:24   #1
jrhnewark
Inactive
 
Join Date: Aug 2004
Location: London
Posts: 1,267
jrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of society
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?
jrhnewark is offline   Reply With Quote
Advertisement
Old 24-10-2007, 01:33   #2
punky
Inactive
 
Join Date: Jun 2003
Age: 44
Posts: 14,750
punky has a golden aurapunky has a golden aura
punky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aura
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
punky is offline   Reply With Quote
Old 24-10-2007, 09:16   #3
BBKing
R.I.P.
 
BBKing's Avatar
 
Join Date: Jun 2003
Location: London
Services: 20Mb VM CM, Virgin TV
Posts: 5,983
BBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny star
BBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny starBBKing has a nice shiny star
Send a message via ICQ to BBKing
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
BBKing is offline   Reply With Quote
Old 24-10-2007, 09:32   #4
AbyssUnderground
Inactive
 
Join Date: Oct 2005
Location: Merseyside
Age: 37
Services: BT Infinity Option 2, HH5, synced at maximum 80Mbps/20Mbps.
Posts: 2,221
AbyssUnderground has reached the bronze age
AbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze age
Send a message via MSN to AbyssUnderground
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.
AbyssUnderground is offline   Reply With Quote
Old 24-10-2007, 10:05   #5
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: Apache config error - help?

Quote:
Originally Posted by AbyssUnderground View Post
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!
Graham M is offline   Reply With Quote
Old 24-10-2007, 10:12   #6
AbyssUnderground
Inactive
 
Join Date: Oct 2005
Location: Merseyside
Age: 37
Services: BT Infinity Option 2, HH5, synced at maximum 80Mbps/20Mbps.
Posts: 2,221
AbyssUnderground has reached the bronze age
AbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze age
Send a message via MSN to AbyssUnderground
Re: Apache config error - help?

Quote:
Originally Posted by Zeph View Post
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
AbyssUnderground is offline   Reply With Quote
Old 24-10-2007, 10:15   #7
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: Apache config error - help?

Precisely... btw how did you know I had an Uncle Bob?
Graham M is offline   Reply With Quote
Old 24-10-2007, 10:18   #8
AbyssUnderground
Inactive
 
Join Date: Oct 2005
Location: Merseyside
Age: 37
Services: BT Infinity Option 2, HH5, synced at maximum 80Mbps/20Mbps.
Posts: 2,221
AbyssUnderground has reached the bronze age
AbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze age
Send a message via MSN to AbyssUnderground
Re: Apache config error - help?

Quote:
Originally Posted by Zeph View Post
Precisely... btw how did you know I had an Uncle Bob?
Oh, didn't you know? I can read minds...
AbyssUnderground is offline   Reply With Quote
Old 24-10-2007, 10:38   #9
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Re: Apache config error - help?

Quote:
Originally Posted by Zeph View Post
Precisely... btw how did you know I had an Uncle Bob?
Strange - my Mother's Brother is also called Robert - maybe we are related?
Mr_love_monkey is offline   Reply With Quote
Old 25-10-2007, 01:12   #10
jrhnewark
Inactive
 
Join Date: Aug 2004
Location: London
Posts: 1,267
jrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of societyjrhnewark is a pillar of society
Re: Apache config error - help?

Quote:
Originally Posted by Gavin View Post
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.
jrhnewark is offline   Reply With Quote
Old 25-10-2007, 01:24   #11
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
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
Graham M is offline   Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 13:37.


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