Results 1 to 3 of 3
Hello every body
l learned to create virtual host with apache in centos, but i thing it's not good and standard way, I would like to talk with you about ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-03-2009 #1Just Joined!
- Join Date
- Oct 2009
- Posts
- 5
Virtual host, Is it professional way?
Hello every body

l learned to create virtual host with apache in centos, but i thing it's not good and standard way, I would like to talk with you about my way and please help me is it true way?and What is your proposal?
i add this:
NewVirtualHost *:80
<virtualhost *:80>
DocumentRoot /usr/local/apache/htdocs/site1
DirectoryIndex index.html
ServerName www .site1. com
</virtualhost>
<dictectory "/usr/local/apache/htdocs/site1">
Order allow,Deny
allow from all
</dictectory>
and add it to /etc/host:
x.y.z.q www . site1.comLast edited by g2eenday; 10-03-2009 at 07:19 PM. Reason: mistake
- 10-05-2009 #2
apache starts and stops just fine with this parameter?
NewVirtualHost *:80
I have honestly never heard of that one.
If I am going to have several different named (FAKE LANDSCAPES - the artificial plant company, fake1.com, fake2.com) than I always use name based virtual hosts
name based virtual hosts - Google Search
- 10-06-2009 #3
Shouldn't
beCode:NewVirtualHost *:80
Code:NameVirtualHost *:80
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
Snakey Wakey!
The Fifth Continent reborn


Reply With Quote
