timgolding
01-09-2008, 03:21 PM
Hi,
I am trying to create a virtualhost for a development environment
We have a separate local server for all our developments. At present we have been putting new projects in new folders on the test server that would look like this
.
..
domain1.com
domain2.com
and hadn't set up any virtual hosts. I suggested we use virtualhosts because we are getting the problem in our sites where links arn't relative to the document root when we upload them to the live server. I have set up a virtual host on a real server but that was when I had domains pointing to the server. I'm not sure how do this when our development server
When we access our sites to test we would type
http://192.168.1.99/domain.com/
unfortunatley the document root would still be in htdocs and not in htdocs/domain.com/
If someone can help me replace the squiggly brackets following
<VirtualHost {vhost}>
DocumentRoot /Applications/MAMP/htdocs/domian.com
ServerName {domain.com}
</VirtualHost>
Any ideas?
I am trying to create a virtualhost for a development environment
We have a separate local server for all our developments. At present we have been putting new projects in new folders on the test server that would look like this
.
..
domain1.com
domain2.com
and hadn't set up any virtual hosts. I suggested we use virtualhosts because we are getting the problem in our sites where links arn't relative to the document root when we upload them to the live server. I have set up a virtual host on a real server but that was when I had domains pointing to the server. I'm not sure how do this when our development server
When we access our sites to test we would type
http://192.168.1.99/domain.com/
unfortunatley the document root would still be in htdocs and not in htdocs/domain.com/
If someone can help me replace the squiggly brackets following
<VirtualHost {vhost}>
DocumentRoot /Applications/MAMP/htdocs/domian.com
ServerName {domain.com}
</VirtualHost>
Any ideas?