Using Alias and Directory

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Using Alias and Directory

Postby eric99 » 20. December 2014 20:57

Good Afternoon,

It's probably something simple. I'm trying to set up a location out of the Document Root from which I can display webpages. I'm running Windows 8.1, Xampp Control Panel v3.2.1.

Alias /fabius-ny "f:/websites/fabius-ny/public_html"
<Directory "f:/websites/fabius-ny/public_html">
Order allow, deny
Allow from all
</Directory>

Apache returns an error message:

2:51:40 PM [Apache] Error: Apache shutdown unexpectedly.
2:51:40 PM [Apache] This may be due to a blocked port, missing dependencies,
2:51:40 PM [Apache] improper privileges, a crash, or a shutdown by another method.
2:51:40 PM [Apache] Press the Logs button to view error logs and check
2:51:40 PM [Apache] the Windows Event Viewer for more clues
2:51:40 PM [Apache] If you need more help, copy and post this
2:51:40 PM [Apache] entire log window on the forums

Probably something simple eh?
eric99
 
Posts: 8
Joined: 20. December 2014 16:46
Operating System: Windows 8.1

Re: Using Alias and Directory

Postby gsmith » 21. December 2014 00:57

Replace:

Order Allow,Deny
Allow from all

with:

Require all granted


You may want/need options or allowoverride in there as well
http://httpd.apache.org/docs/2.4/mod/core.html#options
http://httpd.apache.org/docs/2.4/mod/co ... owoverride
gsmith
 
Posts: 278
Joined: 29. November 2013 18:04
Location: San Diego
XAMPP version: 0.0.0
Operating System: Win 10/2012R VS 14,15,16

Re: Using Alias and Directory

Postby Nobbie » 21. December 2014 02:01

gsmith wrote:Replace:

Order Allow,Deny
Allow from all

with:

Require all granted


But this definately not a reason for Apache to shutdown. There must be a different problem as well.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Using Alias and Directory

Postby eric99 » 21. December 2014 15:51

Thanks all. Require all granted did the trick. Looks like the apache manual needs some updating?
eric99
 
Posts: 8
Joined: 20. December 2014 16:46
Operating System: Windows 8.1

Re: Using Alias and Directory

Postby Altrea » 21. December 2014 16:03

eric99 wrote:Looks like the apache manual needs some updating?

The Apache manuals are up to date
http://httpd.apache.org/docs/current/mo ... ml#require
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 134 guests