Editing Apache file

26 views
Skip to first unread message

GaryB

unread,
Aug 6, 2015, 3:03:41 PM8/6/15
to BBEdit Talk
After installation of Mavericks, I find I can no longer view my pages in the ~/Sites folder. Desiring to fix this, I found the following instructions:

You need to edit /private/etc/apache2/httpd.conf file to fix this kind of error. Open up in the editor and fine the --- and replace it with following .

<Directory >
    #Options FollowSymLinks
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order deny,allow
    Allow from all
</Directory>

Not being very familiar with Terminal editors such as nano, I would like to do the editing in BBEdit. However, even though I have configured BBEdit to view hidden files, I am unable to find
/private/etc/apache2/httpd.conf, or even /private for that matter, in the file open dialog, even though it shows up in the terminal. Any help?

And by the way, will the changes to <Directory> expose my computer to unwanted visitors?

Charlie Garrison

unread,
Aug 6, 2015, 9:43:21 PM8/6/15
to bbe...@googlegroups.com
Good morning,

On 6/8/15 at 11:48 AM -0700, GaryB <gpal...@gmail.com> wrote:

>Not being very familiar with Terminal editors such as nano, I
>would like to do the editing in BBEdit. However, even though I
>have configured BBEdit to view hidden files, I am unable to
>find /private/etc/apache2/httpd.conf, or even /private for that
>matter, in the file open dialog, even though it shows up in the
>terminal. Any help?

Try Cmd-Shift-G in the open file dialog, you should be able to
enter the full path and open the file.

>And by the way, will the changes to <Directory> expose my computer to unwanted visitors?

There are heaps of things more relevant then that; <Directory>
blocks are way the down the list of things to look at to keep
people off your computer. Have a look at your firewall settings.

><Directory >
>#Options FollowSymLinks
>Options Indexes FollowSymLinks Includes ExecCGI
>AllowOverride All
>Order deny,allow
>Allow from all
></Directory>

BTW, that doesn't look right; you haven't specified a directory
in the opening tag.


Charlie

--
Charlie Garrison <garr...@zeta.org.au>
github.com/cngarrison metacpan.org/author/CNG

O< ascii ribbon campaign - stop html mail
http://www.ietf.org/rfc/rfc1855.txt

David Donachie

unread,
Aug 7, 2015, 9:26:31 AM8/7/15
to bbe...@googlegroups.com
> Not being very familiar with Terminal editors such as nano, I would like to do the editing in BBEdit. However, even though I have configured BBEdit to view hidden files, I am unable to find /private/etc/apache2/httpd.conf, or even /private for that matter, in the file open dialog, even though it shows up in the terminal. Any help?

If you already have terminal open you can always use the command line to invoke BBEdit by simply typing

bbedit /private/etc/apache2/httpd.conf

David

Todd Wachob

unread,
Aug 7, 2015, 11:33:57 AM8/7/15
to bbe...@googlegroups.com

But only if the command line tools are installed. See "Install Command Line Tools..." under the BBEdit window.

Also, command line tools are only available in the version of BBEdit downloaded from the Bare Bones website.

Todd

David Donachie

unread,
Aug 7, 2015, 12:29:41 PM8/7/15
to bbe...@googlegroups.com
Which will teach me to take these things for granted :)

David
Reply all
Reply to author
Forward
0 new messages