hi list,
i have done:
./httpsd -S
VirtualHost Configuration:
------>> it is empty.
What's wrong here?
the main problem is that www.domaintwo.com is on port 8000 but if i do
not write it like www.domaintwo.com:8000 it always sends me to
www.domainone.com
thanks
--------------- -----
this is what i have in httpsd.conf:
SSLDisable
[ SSL configuration] --> it works fine
ServerRoot "/usr/local/apache"
Port 443
Listen 443
Listen 80
Listen 8000
User nobody
Group nobody
ServerName www.domainone.com
DocumentRoot "/usr/local/apache/htdocs" --> where domainone (http) web
is located
<Directory "/usr/local/apache/htdocs">
[i think this could be the problem]
NameVirtualHost ip
<VirtualHost ip:8000>
SSLDisable
Port 8000
ServerAdmin webmaster@domaintwo.com
DocumentRoot /home/httpd/www.domaintwo.com
DirectoryIndex index.htm
ServerName www.domaintwo.com
TransferLog /usr/local/apache/logs/domaintwo_access.log
ErrorLog /usr/local/apache/logs/domaintwo_error.log
</VirtualHost>
<VirtualHost ip:80>
SSLDisable
Redirect / https://www.domainone.com -->> it works
Port 80
ServerAdmin webmaster@domainone.com
DocumentRoot /usr/local/apache/httpd
ServerName www.domainone.com
TransferLog /usr/local/apache/logs/domainone_access.log
ErrorLog /usr/local/apache/logs/domainone_error.log
</VirtualHost>
<VirtualHost ip:443>
SSLEnable
Port 443
ServerAdmin webmaster@domainone.com
DocumentRoot /usr/local/apache/httpsdocs
ServerName www.domainone.com
TransferLog /usr/local/apache/logs/domainonesec_access.log
ErrorLog /usr/local/apache/logs/domainonesec_error.log
</VirtualHost>
-------------
if i visit http://www.domainone.com it sends me to
https://www.domainone.com (what i want) .
but if i visit http://www.domaintwo.com it sends me to
http://www.domainone.com. i mean that i have not seen domaintwo web,
just domainone.com .
if i visit http://ip:8000 i see domaintwo.com web.
can i make virtual-host based on domain name? how can i solve
http://www.domainone.com and https://www.domainon.com?
i can just used one ip.
thanks in advance,
marcos
marcos@ival.es