Saturday, February 28, 2009

427 Ss For Sale Truck

Unlock Building on Mac OSX

When you work a lot of it is local web access it through a domain "false." What I do is set the same domain of truth, but finished. Lan

This edit / etc / hosts (after sudo su, because it requires root permissions) by adding the line 172.0.0.1

Then add a virtualhost to apache, to respond to that domain and point to the directory where the code:


NameVirtualHost *: 80
 

\u0026lt;VirtualHost *:80>

ServerName localhost
 
DocumentRoot "/ Users / user / Sites /"

\u0026lt;/ VirtualHost>



\u0026lt;VirtualHost *:80>

www.ejemplo.lan

ServerName DocumentRoot "/ Users / user / Sites / www.ejemplo.lan / httpdocs "


ejemplo.lan


ServerAlias \u200b\u200bErrorLog" logs / example-error_log "

CustomLog "logs / example-access_log" common

\u0026lt;/ VirtualHost>



can do this for each domain, but remember that in / etc / hosts should not add a line for each one, but put them back the latter domain, separated by a space. Nor can you use willcards (wildcard or *)


172.0.0.1 other-web.lan www.ejemplo.lan ejemplo.lan www.otra-web.lan



0 comments:

Post a Comment