Jump to content
php.lv forumi

Virtual Host


Cerka

Recommended Posts

Es esmu uzstaisiji virtual host uz xampp.

Kad rakstu forum.host.lv mani iet ieksa host.lv

httpd-vhosts.conf

NameVirtualHost IP:80

 

<VirtualHost IP:80>

DocumentRoot "C:\Appserv\htdocs"

ServerName host.lv

<Directory />

Options FollowSymLinks

AllowOverride All

</Directory>

DirectoryIndex index.html index.php index.xml

</VirtualHost>

 

<VirtualHost IP:80>

ServerName forum.host.lv

DocumentRoot "C:\Appserv\htdocs\forum"

<Directory />

Options FollowSymLinks

AllowOverride All

</Directory>

<Directory "C:\Appserv\htdocs\forum">

Options Indexes FollowSymLinks

AllowOverride All

Order allow,deny

Allow from all

</Directory>

DirectoryIndex index.html index.php index.xml

</VirtualHost>

 

\WINDOWS\system32\drivers\etc\hosts

 

es esmu ieraksitijis

 

127.0.0.1 forum.host.lv

 

kada varetu but problema!

Link to comment
Share on other sites

×
×
  • Create New...