Apache Virtual Host Question

A

animaguy

Guest
I am studying how to build a Web Server using CentOS 6.x.

There are several different methods and tutorials and not only am I open to all but I want to learn as many different combinations mainly because I really like the way CentOS runs as a distro.

I want to know if anyone has ever tried the wiki.centos.org version.

And if so, what directives in the httpd.conf are the most important to look for.

Any comments would beich appreciated.
 


If you're using Apache, it doesn't really matter much, which distribution you are using. You want to learn about Apache configuration, not about CentOS webserver configuration. There might be minor differences in the default config between distro's, but these are neglactable.

Anyway. I reccommend you don't touch httpd.conf until you really have a good reason for it. Instead, create configuration files for individual virtual servers in /etc/apache2/sites/available and make symlinks to /etc/apache2/sites/enabled to enable them.

http://httpd.apache.org/docs/2.2/vhosts/
 
Well, in Cent, its /etc/httpd/conf.d .. looks like wearegeek is coming from a Debian-based system ;)

Take a look at this page explaining how to do separate vhosts files on CentOS:
http://wiki.centos.org/TipsAndTricks/ApacheVhostDir

Or, you can just add them to the bottom of your /etc/httpd/conf/httpd.conf file if there aren't too many...
 
Oh, I'm sorry! Seems I was wrong... :eek:
I have indeed only used debian and gentoo for server boxes. But apart from the location. The sytaxis of the config files should be the same.
 
WeAreGeek,

i wanted to ask since you know debian servers.

Do you have to download 7 isos to install a Debian Server?
 
Nope, you can just use the netinstall iso, and download packages from the repositories as needed.
 
WeAreGeek,

Do you know how to set up a web server with Debian and a dynamic IP address?
 
Sorry for the late reply. I guess you should use a dynamic DNS solution, like no-ip.com. The basic plan is free, if I'm correct. You can download a Linux client to update your IP address from their website.
 
humm u can do it in httpd.conf

look at the end of file ..
 
I beleive apache httpd.conf file is same as we get it in RHEL. syntex only depends on the version of apache we are using. so to enable virtual hosting we need to perform following steps.
-Install httpd packege
-open [/etc/httpd/conf/httpd.conf]
-at the bottom make the virtual host blocks according to requirement we can get the example of the block there only.
enable namevirtualhost option
-save the file and exit
-restart httpd service. ;)
 

Members online


Latest posts

Top