Find the answer to your Linux question:
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.
  1. #1
    Just 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.com
    Last edited by g2eenday; 10-03-2009 at 07:19 PM. Reason: mistake

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    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

  3. #3
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,540
    Shouldn't

    Code:
    NewVirtualHost *:80
    be

    Code:
    NameVirtualHost *:80
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    The Fifth Continent

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •