I’ve a project named ‘my-new-project’ (that’s just an example). With laragon auto virtual host name feature, i can browse this project via http://my-new-project.test/
Is it possible to browse this project with another name instead of this project name like… http://project.test/?
Also, what is ServerName and ServerAlias located in .conf file inside C:laragonetcapache2sites-enabled?
3
Answers
I’ve found the instructions part that might be useful under a different search:
enter link description here
from which:
The simple solution is to trick!
Create another folder with the name
project
next to themy-new-project
folder.Then go to
C:laragonetcapache2sites-enabled
path and editauto.project.test.conf
.Edit these:
to these:
This is the simple way.
and for this question:
go to this link:
What is the difference between ServerName and ServerAlias in apache2 configuration?
The auto create virtual host option create host for all folders those are present in root server directory. You can check or change your root server directory form preference (the gear icon).
The domain name will be (your-folder-name).test
These steps worked for me.
C:laragonetcapache2sites-enabled
.