From there, we enabled Virtual Hosts and created a simple html script to print out a result message. We accessed these files in /private/etc. The only files we needed to modify were httpd.conf, httpd-vhosts.conf, and hosts:
In httpd.conf, we just uncommented the Virtual hosts line, "Include /private/etc/apache2/extra/httpd-vhosts.conf"
Unfortunately, it seems we can access the default data in local host or the data in our test website, but not both (i.e. we can't have both available to choose between them). We think it is some problem in httpd.conf, but we're not quite sure how to fix it quite yet.
But progress!!
Goals for next week:
- Get both localhost data and test-website.local data to display when we want
- Enable CGI on our Apache server in order to link data to where we want it and run different apps
No comments:
Post a Comment