[GRLUG] two quick vi qq

Brad DeVries devriesbj at gmail.com
Wed May 1 10:43:33 EDT 2013


Eric, I'll answer the first question because it's vi-related and let
someone with more Apache knowhow answer the second question.

In vi, as you know, the slash (/) character searches down the file.  If you
want to search for a slash character then you need to "escape" it with a
backslash.  So, if you tried this key sequence, it would work:
  /\/\/var\/www\/virtual
(Note the backslash characters before each forward slash character, except
the first one, which initiates the search.)

HTH,
Brad.


On Wed, May 1, 2013 at 10:16 AM, Eric Beversluis <
ebever at researchintegration.org> wrote:

> 1.  how would I search for /var/www/virtual in vi? I tried putting
> quotes around it and also just
>  //var/www/virtual
>
> But neither seems to work.
>
> 2. To add AllowOverride for sites at /var/www/virtual, is this correct?
>
> <Directory "/var/www/virtual">
>    AllowOverride All
> </Directory>
>
> And would I just enter it following the same entry for /var/www/html?
>
> Thanks.
>
> _______________________________________________
> grlug mailing list
> grlug at grlug.org
> http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shinobu.grlug.org/pipermail/grlug/attachments/20130501/2a18b6e9/attachment.html>


More information about the grlug mailing list