Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Using a different drive as a directory error |
|
Author |
|
leecooper2013
Joined: 04 Oct 2014 Posts: 25 Location: uk, leicester
|
Posted: Wed 11 Feb '15 18:32 Post subject: Using a different drive as a directory error |
|
|
my virtual host file is set like this
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
ServerAlias www.localhost.co.uk
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@domain1.co.uk
DocumentRoot "C:/xampp/htdocs/domain1"
ServerName domain1.co.uk
ServerAlias www.domain1.co.uk
ErrorLog "logs/domain1.co.uk-error.log"
CustomLog "logs/domain1.co.uk-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin lee@domain2.co.uk
DocumentRoot "E:/"
ServerName domain2.co.uk
ServerAlias www.domain2.co.uk
ErrorLog "logs/domain2.co.uk-error.log"
CustomLog "logs/domain2.co.uk-access.log" common
</VirtualHost>
And im getting an error
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
www.domain2.co.uk
Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3
What am I doing wrong???
Thanks in advance lee |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 11 Feb '15 20:38 Post subject: |
|
|
If you look at your httpd.conf file you will notice about midway you will see;
<Directory "/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
That is what allows access to c:/xampp/htdocs. You need something similar specifically for e:/ |
|
Back to top |
|
leecooper2013
Joined: 04 Oct 2014 Posts: 25 Location: uk, leicester
|
Posted: Wed 11 Feb '15 22:03 Post subject: |
|
|
Thanks so much. where can I find the httpd.conf file??? bit of a noob question I know
Sorted thanks so much!!! |
|
Back to top |
|
|
|
|
|
|