You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a quick question about aliases and the root folder.
Indeed, I want to be able to use aliases to folders that are not in the Laragon root folder while remaining portable.
Example: Laragon is at the root of my L: drive and my root folder is "L:\Laragon\www"
I would like to be able to open, via a simple alias, a project which is located outside the root folder (for example L:\Projects)
I could put my Laragon root folder towards "L:\Projects" but I don't want to see all the "L:\Projects" subfolders, only some.
So I created a test.conf file in my "L:\Laragon\etc\apache2\alias" folder and it works very well.
See the example below:
Alias /test "L:/Project/test/"
# to give access from outside
# replace the lines
#
# Require local
#
# by
#
# Require all granted
#
<Directory "L:/Project/test/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require all granted
#Require local
</Directory>
The problem is that with a hard-coded disk, it breaks the portable side of Laragon.
So my question is:
How do I create aliases to folders on the same hard drive as Laragon but which are external to the Laragon installation folder?
The alias files of "adminer.conf", "redis.conf" and "laragon.conf" update themselves when Laragon is run from another drive but I haven't found how the program does it.
I would like to be able to do something simple like I saw in "L:\Laragon\usr\tpl":
Alias /test "<<APP_DRIVE>>Project/test/"
<Directory "<<APP_DRIVE>>Project/test/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require all granted
</Directory>
I hope I was clear and thank you in advance for your help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Good morning,
I have a quick question about aliases and the root folder.
Indeed, I want to be able to use aliases to folders that are not in the Laragon root folder while remaining portable.
Example: Laragon is at the root of my L: drive and my root folder is "L:\Laragon\www"
I would like to be able to open, via a simple alias, a project which is located outside the root folder (for example L:\Projects)
I could put my Laragon root folder towards "L:\Projects" but I don't want to see all the "L:\Projects" subfolders, only some.
So I created a test.conf file in my "L:\Laragon\etc\apache2\alias" folder and it works very well.
See the example below:
The problem is that with a hard-coded disk, it breaks the portable side of Laragon.
So my question is:
How do I create aliases to folders on the same hard drive as Laragon but which are external to the Laragon installation folder?
The alias files of "adminer.conf", "redis.conf" and "laragon.conf" update themselves when Laragon is run from another drive but I haven't found how the program does it.
I would like to be able to do something simple like I saw in "L:\Laragon\usr\tpl":
I hope I was clear and thank you in advance for your help.
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions