how a folder outside the htdocs folder like on

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

how a folder outside the htdocs folder like on

Postby lse123 » 03. May 2014 08:37

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/...?
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: how a folder outside the htdocs folder like on

Postby lse123 » 06. May 2014 18:27

well?
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: how a folder outside the htdocs folder like on

Postby JJ_Tagy » 06. May 2014 19:47

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
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: how a folder outside the htdocs folder like on

Postby lse123 » 07. May 2014 07:50

where is this docs?
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

you mean this

Postby lse123 » 09. May 2014 17:56

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>
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: how a folder outside the htdocs folder like on

Postby lse123 » 21. May 2014 13:07

well?
folder outside /htdocs/
can be accessed local host in other words like were/located in /htdocs/...?
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: how a folder outside the htdocs folder like on

Postby Nobbie » 21. May 2014 18:40

Yes. As you can see, with the help of ALIAS.

Read the documentation about ALIAS and follow the examples.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: how a folder outside the htdocs folder like on

Postby lse123 » 21. May 2014 20:33

alias in what doc? xampp or php or can you tell url?
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: how a folder outside the htdocs folder like on

Postby Altrea » 21. May 2014 20:56

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: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: how a folder outside the htdocs folder like on

Postby JJ_Tagy » 21. May 2014 21:04

My example: http://localhost/edit
My 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.
Last edited by JJ_Tagy on 21. May 2014 22:14, edited 1 time in total.
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: how a folder outside the htdocs folder like on

Postby lse123 » 21. May 2014 21:44

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>
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: how a folder outside the htdocs folder like on

Postby JJ_Tagy » 21. May 2014 22:14

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...
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: how a folder outside the htdocs folder like on

Postby JJ_Tagy » 21. May 2014 22:19

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))">
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: how a folder outside the htdocs folder like on

Postby lse123 » 22. May 2014 09:46

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
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: how a folder outside the htdocs folder like on

Postby lse123 » 22. May 2014 09:59

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
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 79 guests