|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
|
Thread Tools | Display Modes |
|
|||
Code:
$ cat update_apache #!/bin/sh FILE=httpd.conf HOSTNAME=$1 YOU=$2 DOMAIN=$3 IP=$4 cat <<EOF >>${FILE} <VirtualHost ${HOSTNAME}:80> ServerAdmin ${YOU}@${DOMAIN} ServerName ${IP} DocumentRoot /www ErrorLog logs/error_log CustomLog logs/access_log combined </VirtualHost> EOF $ sh update_apache hercules.utp.xnet j65nko pietje_puk.nl 81.00.00.01 $ cat httpd.conf <VirtualHost hercules.utp.xnet:80> ServerAdmin j65nko@pietje_puk.nl ServerName 81.00.00.01 DocumentRoot /www ErrorLog logs/error_log CustomLog logs/access_log combined </VirtualHost>
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PHP read file contents - Maximum file size | cksraj | Programming | 1 | 21st September 2009 11:38 AM |
Deleting lines with certain letters/keywords. | bigb89 | Programming | 4 | 12th November 2008 11:59 PM |
Putting Lines to Together. | bigb89 | Programming | 4 | 24th September 2008 03:59 AM |
Adding a separate /home | JMJ_coder | NetBSD General | 2 | 29th August 2008 10:45 AM |
Having trouble adding 7.0 to GRUB 0.97 | Arenlor | FreeBSD General | 4 | 26th June 2008 01:02 AM |