Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    <dictectory "/usr/local/apache/htdocs/site1">
    Order allow,Deny
    allow from all

    and add it to /etc/host:
    x.y.z.q www .
    Last edited by g2eenday; 10-03-2009 at 07:19 PM. Reason: mistake

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    North Carolina
    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,, 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
    Either at home or at work or down the pub

    NewVirtualHost *:80

    NameVirtualHost *:80
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!

    The Fifth Continent

  4. $spacer_open

Posting Permissions

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