script question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I can do "simply" search and replace with sed.
However, I want to setup httpd.conf from a script
that changes the default "/" which is presently:

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

and change it to the following:

<Directory />
    Order Deny,Allow
    Deny from all
    AllowOverride None
</Directory>

How do you do that with scripts? Basically substitute everything between 
the two Directory tags.

Thanks,

Jerry
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux