0

Using the below apache configuration in WAMP, I'm unable to boot up apache due to the error: Syntax error on line 42 of C:/wamp/bin/apache/apache2.2.22/conf/extra/httpd-vhosts.conf: .

I've verified the path exists... what am I missing?

<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "c:\\wamp\\www\\mysite\\live" ServerName api.mydomain.com </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "g:\\mysite\\live" //SYNTAX ERROR ServerName mydomain.com </VirtualHost> 

In addition to that error, I also get another error: DocumentRoot must be a directory .

2 Answers 2

1

Is G: an unity connected? Maybe Apache can't find it launching the syntax error.

Sign up to request clarification or add additional context in comments.

1 Comment

I'm running Windows virtually and G: is a drive mapped via VirtualBox. I'm able to navigate to that path and create/edit files there.
0

Despite G: being a mapped drive, WAMP didn't like it and wouldn't start when I used it. Using the network path that virtual provided (\\VBOXSVR\www) has resolved the issue.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.