Discussion:
Looking for htaccess file
(too old to reply)
JamieCoy
2017-02-05 21:11:41 UTC
Permalink
Using Mac OS Sierra, I am running Apache to serve up documents from ~/Library/Sites.

I have used an app called Invisibility Toggler to show invisible files. Nowhere can I find the htaccess file. It is not at the root of the documents in Sites, nor can I find it in /var or /etc or /private or anywhere else. The site is up and running though. Is it conceivable that I’m running my server without this file? I want to block an Asian webcrawler, baiduspider.

Thanks for any help.
Jerry Stuckle
2017-02-06 04:39:24 UTC
Permalink
Post by JamieCoy
Using Mac OS Sierra, I am running Apache to serve up documents from ~/Library/Sites.
I have used an app called Invisibility Toggler to show invisible files. Nowhere can I find the htaccess file. It is not at the root of the documents in Sites, nor can I find it in /var or /etc or /private or anywhere else. The site is up and running though. Is it conceivable that I’m running my server without this file? I want to block an Asian webcrawler, baiduspider.
Thanks for any help.
You may not have a .htaccess file (note the "." at the beginning). It
is an optional file for Apache. There is no problem if it is not
present (in fact, there is a performance hit if it IS present).

And remember - you can have multiple .htaccess files. If present, the
file applies to that directory and all directories under it (unless
overridden by another .htaccess file).
--
==================
Remove the "x" from my email address
Jerry Stuckle
***@attglobal.net
==================
JamieCoy
2017-02-06 20:01:03 UTC
Permalink
Post by Jerry Stuckle
Post by JamieCoy
Using Mac OS Sierra, I am running Apache to serve up documents from ~/Library/Sites.
I have used an app called Invisibility Toggler to show invisible files. Nowhere can I find the htaccess file. It is not at the root of the documents in Sites, nor can I find it in /var or /etc or /private or anywhere else. The site is up and running though. Is it conceivable that I’m running my server without this file? I want to block an Asian webcrawler, baiduspider.
Thanks for any help.
You may not have a .htaccess file (note the "." at the beginning). It
is an optional file for Apache. There is no problem if it is not
present (in fact, there is a performance hit if it IS present).
And remember - you can have multiple .htaccess files. If present, the
file applies to that directory and all directories under it (unless
overridden by another .htaccess file).
--
==================
Remove the "x" from my email address
Jerry Stuckle
==================
Thanks Jerry. Perhaps I'm better off without it.

Continue reading on narkive:
Loading...