Comments on Create Your Own Web Server With BIND And Apache On CentOS 5 (Simplified)
Create Your Own Web Server With BIND And Apache On CentOS 5 (Simplified) This tutorial explains how you can run your own web server on CentOS 5 with the help of Apache and the BIND name server.
6 Comment(s)
Comments
This does not work on CentOS 5.2 build. I rebuilt the VPS several times and tried this several times, being sure to follow the directions perfectly.
Also, the named.conf link in the beginning of this article is broken.
the named.conf link referred in previous post from 2009 is still broken.
Looks like abandonsite....
Hi, I used waybackmachine to trawl the internet for the missing named.txt file.
Hope this helps!! I am about to have a crack at setting up my first Apache Server
Here it is. Best of luck!
################################################################################ # Server Configuration # ################################################################################ options { directory "/var/named"; recursion yes; query-source address * port 53; notify no; }; ################################################################################ # Logging Configuration # ################################################################################ logging { channel query_log { severity info; print-time yes; file "query.log" versions 3 size 100M; }; channel activity_log { severity info; print-time yes; print-category yes; print-severity yes; file "activity.log" versions 3 size 100M; }; category queries { query_log; }; category default { activity_log; }; category xfer-in { activity_log; }; category xfer-out { activity_log; }; category notify { activity_log; }; category security { activity_log; }; category update { activity_log; }; category network { null; }; category lame-servers { null; }; }; ################################################################################ # Zone Configuration # ################################################################################ # # Specify the root name servers # zone "." IN { type hint; file "/var/named/named.ca"; }; # # Configure ourself as the host for website.com #
Thanks, Its Working
Why the needless obfuscation ? A user can just "cat" or "head" or "more" the hosts file, instead of using awk string functions.
awk 'NR==3 {print substr($0,1,14)}' /etc/hosts
Awk has its place, but not for looking at one line in a file. This kind of thing will throw beginners. And why use conditional constructs on the command line, like this:
cd /etc/httpd/conf && cp /etc/httpd/conf/httpd.conf httpd.conf.temp
where just typing the commands is easier ?
cd /etc/httpd/conf
cp httpd.conf httpd.conf.temp
Example of named.conf has disappeared and cant be downloaded.