Page 1 of 2
how a folder outside the htdocs folder like on
Posted:
03. May 2014 08:37
by lse123
xampp
how a folder outside the /htdocs/ like on:
like c:/, D:/ (my second disk), dvd e:/ or, usb stick h:/
can be accessed local host in other words like were/located in /htdocs/...?
Re: how a folder outside the htdocs folder like on
Posted:
06. May 2014 18:27
by lse123
well?
Re: how a folder outside the htdocs folder like on
Posted:
06. May 2014 19:47
by JJ_Tagy
Alias. An example is already present in your httpd.conf file (look at phpmyadmin). Just use your drive designator in conjunction.
EDIT: Actual location is \xampp\apache\conf\extra\httpd-xampp.conf
Re: how a folder outside the htdocs folder like on
Posted:
07. May 2014 07:50
by lse123
where is this docs?
you mean this
Posted:
09. May 2014 17:56
by lse123
you mean this: // what do for all d:/photos/ my second hdd drive my second drive? can use and dvdrom drive?
- Code: Select all
<Directory "C:/xampp/htdocs/xampp">
<IfModule php5_module>
<Files "status.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
AllowOverride AuthConfig
</Directory>
<IfModule alias_module>
Alias /security "C:/xampp/security/htdocs/"
<Directory "C:/xampp/security/htdocs">
<IfModule php5_module>
<Files "xamppsecurity.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
Re: how a folder outside the htdocs folder like on
Posted:
21. May 2014 13:07
by lse123
well?
folder outside /htdocs/
can be accessed local host in other words like were/located in /htdocs/...?
Re: how a folder outside the htdocs folder like on
Posted:
21. May 2014 18:40
by Nobbie
Yes. As you can see, with the help of ALIAS.
Read the documentation about ALIAS and follow the examples.
Re: how a folder outside the htdocs folder like on
Posted:
21. May 2014 20:33
by lse123
alias in what doc? xampp or php or can you tell url?
Re: how a folder outside the htdocs folder like on
Posted:
21. May 2014 20:56
by Altrea
Re: how a folder outside the htdocs folder like on
Posted:
21. May 2014 21:04
by JJ_Tagy
My example:
http://localhost/editMy setup (C:\xampp\apache\conf\extra\httpd-xampp.conf as discussed in the post above). Near the bottom (look for phpMyAdmin also discussed above) I added this:
- Code: Select all
Alias /edit "C:/xampp/edit/"
<Directory "C:/xampp/edit">
AllowOverride all
Require all granted
</Directory>
I can't hold your hand any better than that.
Re: how a folder outside the htdocs folder like on
Posted:
21. May 2014 21:44
by lse123
xampp\apache\conf\extra\httpd-xampp.conf correct the file ext in our post must be ".conf"
tried but did not work... same(C:/) or differ drive(G:/)?
Alias /video "C:/Users/User/Pictures/"
<Directory "C:/Users/User/Pictures">
AllowOverride all
Require all granted
</Directory>
Alias /video2 "G:/Downloads/video2/"
<Directory "G:/Downloads/video2">
AllowOverride all
Require all granted
</Directory>
Re: how a folder outside the htdocs folder like on
Posted:
21. May 2014 22:14
by JJ_Tagy
lse123 wrote:xampp\apache\conf\extra\httpd-xampp.conf correct the file ext in our post must be ".conf"
Yes. Typo from doing more than one thing at a time...
Re: how a folder outside the htdocs folder like on
Posted:
21. May 2014 22:19
by JJ_Tagy
lse123 wrote:tried but did not work... same(C:/) or differ drive(G:/)?
Alias /video "C:/Users/User/Pictures/"
<Directory "C:/Users/User/Pictures">
AllowOverride all
Require all granted
</Directory>
Alias /video2 "G:/Downloads/video2/"
<Directory "G:/Downloads/video2">
AllowOverride all
Require all granted
</Directory>
Was it a 403 error? What does "not work" mean? Not sure you will be able to do anything in the UAC protected folders. Other thing I forgot was I modified this line for the xampp security concept.
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info
|edit))">
Re: how a folder outside the htdocs folder like on
Posted:
22. May 2014 09:46
by lse123
what is this line you talk about?
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
localhost
Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4
Re: how a folder outside the htdocs folder like on
Posted:
22. May 2014 09:59
by lse123
change that line and somehow message altered... see:
Access forbidden!
New XAMPP security concept:
Access to the requested object is only available from the local network.
This setting can be configured in the file "httpd-xampp.conf".
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4