Jump to content
php.lv forumi

virtual hosts


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.


DocumentRoot C:\AppServ\www

ServerName localhost





<Directory C:\web>

Order Deny,Allow

Allow from all

Options FollowSymLinks

AllowOverride FileInfo








DocumentRoot C:\web\auto

ServerName auto


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



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.

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.


  • Create New...