Find the answer to your Linux question:
Results 1 to 7 of 7
Hi, I had created a virtual host by giving following code in the httpd.conf file <VirtualHost *:77> DocumentRoot /var/www/html/backups/drupal/ <Directory /var/www/html/backups/drupal/> Options None AllowOverride All order deny,allow allow from all ...
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    5

    Problem while creating Virtual Host

    Hi,

    I had created a virtual host by giving following code in the httpd.conf file

    <VirtualHost *:77>

    DocumentRoot /var/www/html/backups/drupal/
    <Directory /var/www/html/backups/drupal/>
    Options None
    AllowOverride All
    order deny,allow
    allow from all
    </Directory>
    ErorLog logs/dev.vigt.com-error_log
    CustomLog logs/dev.vigt.com-access_log common
    </VirtualHost>


    After this restarted the apache.

    But hostname:77 showing the login page of original host and not taking the contents mentioned in the document root of virtual host.

    What may be the problem?

    Thanks,
    Kavitha

  2. #2
    Just Joined!
    Join Date
    Aug 2009
    Posts
    5
    If I enter:
    /usr/sbin/httpd -S

    the virtual host is created, but what is the problem that it is not showing the content in document root.

    I also entered it in /etc/hosts file

    Thanks,
    Kavitha

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Posts
    20
    hai
    Make sure y placed the VIrtual Host directory in the right place( i prefer bottom of configuration file) and place the Directory Directives..

  4. #4
    Just Joined!
    Join Date
    Jan 2008
    Posts
    12
    Hello,

    You need to change Option in virtual host...

    Options Indexes FollowSymLinks MultiViews

    And also check in root document /var/www/html/backups/drupal/
    for .htaccess create a backup of this file and make it empty.

  5. #5
    Just Joined!
    Join Date
    Aug 2009
    Posts
    5
    I changed the options,
    Still I am getting the same problem?
    I didn't find any .htaccess files in that location.

    Regards,
    Rajamani

  6. #6
    Just Joined!
    Join Date
    Jan 2008
    Posts
    12
    You need to create this file ".htaccess"

  7. #7
    Just Joined!
    Join Date
    Aug 2009
    Posts
    5
    Thanks for your quick reply.

    I just created the file using touch .htaccess and restarted the apache.

    But still same issue?

Posting Permissions

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