| View previous topic :: View next topic |
| Author |
Message |
Kirsty Kambites Guest
|
Posted: Tue Oct 02, 2007 6:45 pm Post subject: Apache and UserDir |
|
|
Hi there,
I've installed Apache 2.2.6 on XP and I've been trying to configure it.
I only want a web server so I can play around with some server-side
stuff so I've set it up to run in console mode. Anyway I looked in
httpd.conf and uncommented the line that includes the userdir
configuration file so I can keep my webpages in my documents/my website.
However running test configuration gives me the following error message:
Syntax error on line 16 of C:/Program Files/Apache Software
Foundation/Apache2.2/conf/extra/httpd-userdir.conf:
Multiple <Directory> arguments not (yet) supported.
I find this rather surprising as this is the default configuration (I've
removed one # symbol!). It works (no configuration errors and serves
the correct file) if I replace the provided <Directory> directive with
the one for the root directory, editing the directory name. I can't see
anything wrong with this approach but is there? Presumably the more
complicated directive is there for a reason?
--
Kirsty |
|
| Back to top |
|
 |
| |
Ads |
Advertising
Sponsor
|
|
Kees Nuyt Guest
|
Posted: Tue Oct 02, 2007 7:55 pm Post subject: Re: Apache and UserDir |
|
|
On Tue, 02 Oct 2007 14:45:30 +0100, Kirsty Kambites
<kirstykambites@invalid.invalid> wrote:
| Quote: |
Hi there,
I've installed Apache 2.2.6 on XP and I've been trying to configure it.
I only want a web server so I can play around with some server-side
stuff so I've set it up to run in console mode. Anyway I looked in
httpd.conf and uncommented the line that includes the userdir
configuration file so I can keep my webpages in my documents/my website.
However running test configuration gives me the following error message:
Syntax error on line 16 of C:/Program Files/Apache Software
Foundation/Apache2.2/conf/extra/httpd-userdir.conf:
Multiple <Directory> arguments not (yet) supported.
I find this rather surprising as this is the default configuration (I've
removed one # symbol!). It works (no configuration errors and serves
the correct file) if I replace the provided <Directory> directive with
the one for the root directory, editing the directory name. I can't see
anything wrong with this approach but is there? Presumably the more
complicated directive is there for a reason?
|
Perhaps you have to quote the path a bit differently:
The default probably is:
<Directory C:/Documents and Settings/*/"My Documents/My
Website">
Change that into:
<Directory "C:/Documents and Settings"/*/"My Documents/My
Website">
Directory names with spaces are tricky, because space is often a
delimiter. Different Apache modules may interpret those slightly
differently. And yes, not all examples are perfect. Many aren't
tested, because not every developer runs MS Windows.
(note: both are wrapped in this post, should be on one line in
the .conf file).
--
( Kees
)
c[_] Like a lot of husbands throughout history, Mr. Webster would sit
down and try to talk to his wife. As soon as he'd say something
though, she'd fire back with, "And just what the hell is THAT
supposed to mean?" Thus, Webster's Dictionary was born. (#6) |
|
| Back to top |
|
 |
| |
Ads |
Advertising
Sponsor
|
|
Kirsty Kambites Guest
|
Posted: Wed Oct 03, 2007 7:29 pm Post subject: Re: Apache and UserDir |
|
|
Kees Nuyt wrote:
| Quote: |
On Tue, 02 Oct 2007 14:45:30 +0100, Kirsty Kambites
kirstykambites@invalid.invalid> wrote:
However running test configuration gives me the following error message:
snip
Perhaps you have to quote the path a bit differently:
|
Having reviewed the file in light of your comment I noticed that the
entry is <Directory ""C:/Documents and Settings/*/My Documents/My
Website"">. Removing the two extraneous double quotes at beginning and
end solves the problem.....
--
Kirsty |
|
| Back to top |
|
 |
| |
Ads |
Advertising
Sponsor
|
|
Kees Nuyt Guest
|
Posted: Wed Oct 03, 2007 8:11 pm Post subject: Re: Apache and UserDir |
|
|
On Wed, 03 Oct 2007 15:29:04 +0100, Kirsty Kambites
<kirstykambites@invalid.invalid> wrote:
| Quote: |
Kees Nuyt wrote:
On Tue, 02 Oct 2007 14:45:30 +0100, Kirsty Kambites
kirstykambites@invalid.invalid> wrote:
However running test configuration gives me the following error message:
snip
Perhaps you have to quote the path a bit differently:
Having reviewed the file in light of your comment I noticed that the
entry is <Directory ""C:/Documents and Settings/*/My Documents/My
Website"">. Removing the two extraneous double quotes at beginning and
end solves the problem.....
|
That's great.
Thanks for the feedback.
--
( Kees
)
c[_] I went to a planet where the dominant lifeform had no
bilateral symmetry, and all I got was this stupid F-Shirt. (#108) |
|
| Back to top |
|
 |
| |
Ads |
Advertising
Sponsor
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|

80 Attacks blocked
Powered by phpBB © 2001, 2005 phpBB Group
|