![]() |
Apache Problem
All my domains from VirtualHost are redirected to same documentroot (the documentroot of 1st VirtualHost
here is the sample from httpd.conf: Code:
<VirtualHost *:80>What can be wrong? |
Hosts file issue?
Or you could try: ServerAlias site1.com and ServerAlias site2.com in each virtual host? |
Quote:
i've added ServerAlias site1.com and ServerAlias site2.com in each virtual host but still redirect site2.com to site1.com :( |
Have you restarted apache since the httpd configuration changes?
|
Post the whole httpd.conf file...
|
Quote:
sure i've restarted apache |
It's acting like domain one is the hostname for the server, and the second host is just directing to the hostname directory. Neither is actually working. :2 cents:
|
Are u certain you've got defferent .html index files in each directory so you can tell the difference. Are you using different IP addresses for each domain if so are the details the same with bind and apache?
|
are you typing www when you visit the site?
add *.domain.com to server alias |
Quote:
ok.. this was wrong.. i've forgeted to add * to the serveralias.. now is working :) |
| All times are GMT -7. The time now is 02:44 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123