October 19th, 2000, 06:06 PM
>>Nothing, as if it didn't exist. I suspect VServers have some odd setups of Apache.
If your httpd.conf currently doesn't have any <VirtualHost>, then don't worry about it.
To move those stuffs from .htaccess to httpd.conf is just the way how you interpret the full system path of http://www.landofthesun.org/.htaccess and apply that to httpd.conf.
For example of your .htaccess system path:
is equivalent to:
So you should put those stuffs within such <Directory> block.
i.e. for vhost:
Rewrite stuffs go here
<Files ~ "^.ht">
Deny from all
You might wonder why I placed the <Files> block within <VirtualHost> block but outside the <Directory> block. Check out -> http://www.apache.org/docs/mod/core.html#files and look at the line -> "Context: server config, virtual host, .htaccess", you then can tell that <Files> block CAN'T be in <Directory> block.
>>do you know of any good hosting companies that provide BSD/Linux hosting Apache/PHP/MySQL
Don't know but I would run my own server or go for a co-location service (few hundred $) since I trust nobody but myself. In fact, PHP is pretty insecure in a public host. If you are willing to pay up to $100, why not considering SDSL and pay just a tiny bit more for more speed?
[This message has been edited by freebsd (edited October 19, 2000).]
October 20th, 2000, 03:14 AM
Those directives work very nicely. Thank you.
I need to RTFM more! Problem is doing this more as a hobby which "FM" do I "R"?! Learn UNIX, learn Apache, PHP, regex...or read stories to my three kids? The latter always wins :-)
>>>why not considering SDSL and pay just a tiny bit more for more speed?
I would love to. I live in a small fishing village in the middle of nowhere in UK and they have just heard of toasters, let alone bandwidth ;-)
[This message has been edited by forefront (edited October 20, 2000).]