Jump to content
php.lv forumi

virtual hosts


yeahz

Recommended Posts

  • 6 months later...

Es nezinu, ko lai īsti tur meklē :D Varu parādīt nelielu fragmentu no vhosts, kas laikam neko nemaina.

<VirtualHost 127.0.0.1>

DocumentRoot C:\AppServ\www

ServerName localhost

</VirtualHost>

 

 

 

<Directory C:\web>

Order Deny,Allow

Allow from all

Options FollowSymLinks

AllowOverride FileInfo

</Directory>

 

 

 

NameVirtualHost 127.0.0.1

 

<VirtualHost 127.0.0.1>

DocumentRoot C:\web\auto

ServerName auto

</VirtualHost>

Link to comment
Share on other sites

Paprovē šitā: <VirtualHost *:80>

 

Jo pagaidām, tas kas tev tur ir norādīts attiecas tikai uz 127..., bet ja nāk no citas IP, tad nekā..

 

Pēc izmaiņām, neaizmirsti pārstartēt apači..

Edited by briedis
Link to comment
Share on other sites

Paprovē pievienot alias'u:

 

<VirtualHost *:80>

DocumentRoot "C:\AppServ\www"

ServerName [te ārējais IP]

ServerAlias localhost

</VirtualHost>

 

Bet skaties, lai nav tā, ka vairākiem ierakstiem sakrīt servera vārdi, iespējams apače nestartēsies...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...