Welcome Guest, Not a member yet? Register   Sign In
local path
#6

[eluser]Samus[/eluser]
[quote author="CroNiX" date="1334604875"]Something like this. You will probably have some things you need to change in your main httpd.conf to make this work (like telling it to load the httpd-vhosts.conf file), among others. I don't have everything written down that is necessary, so google is your friend here.

From: Apache_dir/conf/extra/httpd-vhosts.conf
Code:
<VirtualHost *>
    ServerAdmin my_email@my_host.com
    DocumentRoot D:/public_html/project_directory
    ServerName project_name.localhost
    ServerAlias project_name
    ErrorLog D:/public_html/project_directory/error_log
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
</VirtualHost>

So DocumentRoot is set to where this project is located (subdir of my public_html dir).
And, "project_name.localhost" or "project_name" is the url to access the local site in the browser.[/quote]
Thanks.

Does each project have to be wrapped in those <virtualhost> tags?


Messages In This Thread
local path - by El Forum - 04-16-2012, 12:04 PM
local path - by El Forum - 04-16-2012, 12:18 PM
local path - by El Forum - 04-16-2012, 12:26 PM
local path - by El Forum - 04-16-2012, 12:33 PM
local path - by El Forum - 04-16-2012, 12:34 PM
local path - by El Forum - 04-16-2012, 12:36 PM
local path - by El Forum - 04-16-2012, 12:36 PM
local path - by El Forum - 04-16-2012, 12:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB