TRAC: Subdomain access

Step 1: Edit C:/Windows/System32/drivers/etc/hosts file by adding:

127.0.0.4      trac.localhost

Step 2: Edit C:/Konami/Web/Apache/conf/extra/httpd-vhosts.conf by adding:

<VirtualHost 127.0.0.4>
    DocumentRoot "C:/Konami/Web/Apache/htdocs/trac"
    ServerName trac.localhost.com
    ServerAlias www.trac.localhost.com
</VirtualHost>

Step 3: Run trac service by using the following command:

bash -c 'C:/Konami/Python/Scripts/tracd
--hostname="trac.localhost"
--port=80
"C:/Konami/Web/Apache/htdocs/trac"'


Now you should be able to access the trac server by entering 'trac.localhost' into your browser.

No comments: