Page 2 of 2 First 12
  • Jump to page:
    #16
  1. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>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:
    /home/httpd/htdocs/.htaccess

    is equivalent to:

    <Directory "/home/httpd/htdocs">

    So you should put those stuffs within such <Directory> block.

    i.e. for vhost:

    <VirtualHost 207.159.137.10>
    blah blah
    blah blah
    <Directory "/home/httpd/landofthesun.org">
    Rewrite stuffs go here
    </Directory>
    <Files ~ "^.ht">
    Order deny,allow
    Deny from all
    </Files>
    </VirtualHost>

    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).]
  2. #17
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    166
    Rep Power
    15
    Hi

    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 ;-)

    David

    [This message has been edited by forefront (edited October 20, 2000).]
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo