Excuse me for my English. I`ve had some problem with non-working virtual hosts 
installed on my snv_56 SAMP (Solaris+Apache2+MySQL+PHP5). Here is my way to 
solve one. 
vi /etc/hosts to add some virtual hosts, for example 127.0.1.1  vhost1, 
127.0.2.1 vhost2
ifconfig rtls0:1 plumb (create virtual interface #1), ifconfig rtls0:1 
127.0.1.1 up (configure vhost1), 
echo vhost1 > /etc/hostname.rtls0:1 (add logical interface vhost1 to the 
system). Edit the httpd-vhosts.conf like this:
<VirtualHost vhost1:80>
    ServerAdmin root at solaris-devx
    DocumentRoot /opt/csw/apache2/share/htdocs/vhost1
    ServerName vhost1
    ServerAlias www.vhost1
    ErrorLog "var/log/vhost1/error_log"
    CustomLog "var/log/vhost1/access_log common"
</VirtualHost>

You have a vhost1 now http://vhost1/
This message posted from opensolaris.org


Reply via email to