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
...
- 10-16-2009 #1Just 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
- 10-16-2009 #2Just 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
- 10-19-2009 #3Just 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..
- 10-19-2009 #4Just 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.
- 11-17-2009 #5Just 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
- 11-17-2009 #6Just Joined!
- Join Date
- Jan 2008
- Posts
- 12
You need to create this file ".htaccess"
- 11-17-2009 #7Just 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?


Reply With Quote