#apache - Tue 13 Mar 2007 between 12:22 and 12:33

NY Lost Funds



enzoi have simplified my rules with just this: RewriteEngine On ; RewriteRule .* get.php
DrBacchusenzo: Also, a more specific statement of "doesn't seem to work" would be helpful.
Jared555copy everything off the network drive to the two apache test servers
enzobut get.php is not invoked with an url like path%2fpath
Jared555since using a net mount drive doesn't seem to be working
DrBacchuspath%2path doesn't match !^/(soap|addons)
Jared555if I remember correctly I got errors any time I changed the location of htdocs in the config even to like C:/htdocs
DrBacchusenzo: So actual data might make it slightly clearer what is actually happening.
enzoyou see the problem ?
DrBacchusenzo: I asked you two questions. Perhaps I should ask them more clearly.
enzo: What *exactly* is happening, when you say it "doesn't seem to work"
enzoi add more log in my log
DrBacchusAnd, are you using "path%2fpath", literally, as your URI, or something else in the place of 'path
Jared555be easier if this was linux (what the final system will be on) but it is easier to mess up/restore it on windows
enzohere is my problem DrBacchus, my .htaccess is: http://pastebin.ca/393413, i have a simple echo "hello world" in get.php
when i access to www.myserver.com/anything/anything, i can see hello world, but if i access www.myserver.com/anything%2fanything, apache sends me an error 404
DrBacchusenzo: I don't see a RewriteCond in that .htaccess file.
enzoyes DrBacchus because even without the rewritecond, my problem appears
DrBacchusenzo: .htaccess files are only invoked when the URI maps to the directory containing the .htaccess file.
enzoi have a .htaccess at the top level
in /
DrBacchusAnd that will only be invoked if the URI in question maps to that directory. Which, in the case of an invalid URI, it doesn't.
This is why it's so much easier when you use rewrite rules in the main config, rather than faffing about with .htaccess files.
enzomain config, you're speaking about httpd.conf DrBacchus ?
pctonyJared555: just to repeat, using network drives is a big mistake you will introduce instabilities that will be hard to diagnose with HTTPd itself. If you also move the mapping point, you will have to stop Apache each time too.
Jared555pctony, any idea why even changing the documentroot to C:/htdocs for example errors?
pctonyIf you are using a networked set of files, then you will have to copy them locally and run with that. This is all of course if you want to automate them
DrBacchusenzo: Yes, that's usually what the main configuration file is called.
pctonyJared555: that made no sense?
why does it result in errors?
is that what you meant?
enzothe problem is exactly the same when i put my config in httpd.conf DrBacchus
http://pastebin.ca/393426 <= here is the config in httpd.conf
Chrisalyshi everyone, I've set up subversion to work with apache and SSL, using the SSLRequireSSL direction, but when I try to surf to the repository web url I get a 403 forbidden error (wthout the direction everythign works), what am I missing?
DrBacchusenzo: Do you have vhosts?
enzoyes
DrBacchusenzo: Then the ruleset must go into the vhost block, rather than out in the global scope. vhosts don't inherit rewrite directives by default.
enzowell sorry, that's where i've put the config DrBacchus
Roobarb-WorkChrisalys: are you browsing that direcroty via SSL in the first place ?
DrBacchusenzo: you mean it's in the vhost block, or you mean it's in the global scope?

Page: 2 9 16 23 30 37 44 

IrcArchive

NY Lost Funds