Jump to content
php.lv forumi

Recommended Posts

Posted

Kāpēc kad es mēģinu ieseivot hosts failu (C:\Windows\system32\drivers\etc\hosts), tad man saka, failu izmanto kāda cita programma, bet neviena cita viņu neizmanto (nu laikam jau windows :D). Kā ar to tikt galā? Windows 7.

Posted

Kāpēc kad es mēģinu ieseivot hosts failu (C:\Windows\system32\drivers\etc\hosts), tad man saka, failu izmanto kāda cita programma, bet neviena cita viņu neizmanto (nu laikam jau windows :D). Kā ar to tikt galā? Windows 7.

Run As Administrator.

  • 6 months later...
Posted

Nu kaut kas nav konfigā. Visdrīzāk, nav tiesību piekļūt no cita hosta, tikai no localhosta...

Skaties konfigā (gan parastajā, gan virtualhost failā)

Posted

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>

Posted (edited)

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
Posted

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...

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...