[GRLUG] two quick vi qq

Bill Pribble Bill.Pribble at Haworth.com
Wed May 1 10:27:31 EDT 2013


Sorry, this should put the AllowOverride All line above the </Directory> line.
You can redirect this to a temp file or use the sed -i to edit the file directly.  Make a copy first.

-----Original Message-----
From: grlug-bounces at grlug.org [mailto:grlug-bounces at grlug.org] On Behalf Of Bill Pribble
Sent: Wednesday, May 01, 2013 10:26 AM
To: Mailing List for LUG in greater Grand Rapids, MI area.
Subject: Re: [GRLUG] two quick vi qq

Try this

sed '/\/Directory/ i\AllowOverride All' file_name

-----Original Message-----
From: grlug-bounces at grlug.org [mailto:grlug-bounces at grlug.org] On Behalf Of Eric Beversluis
Sent: Wednesday, May 01, 2013 10:16 AM
To: grlug at grlug.org
Subject: [GRLUG] two quick vi qq

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
_______________________________________________
grlug mailing list
grlug at grlug.org
http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug


More information about the grlug mailing list