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 08: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,653
    Shouldn't

    Code:
    NewVirtualHost *:80
    be

    Code:
    NameVirtualHost *:80
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  4. $spacer_open
    $spacer_close

Posting Permissions

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