help needed setting up virtual host on apache

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

help needed setting up virtual host on apache

Postby itisjoby » 23. February 2020 15:57

hey there.i recently bought a aws ec2.and hosted a php codeigniter site which is accessible vis mysiteip/codeigniterSiteFolder.but then i added a laravel site also to my server.the problem is when i visit the laravel folder i get a folder like structure.i need to visit the public folder inside it to access my page.means my visitors have to type 'mysiteip/laravelFolder/public.i need it to reduce to mysiteip/laravelFolder.i understood virtual host can do it.i tried to duplicate the default virtual host file in apache site available page and pointed it to the var/www/html/laravelfolder/public.but it just not working correctly.pls help
itisjoby
 
Posts: 1
Joined: 23. February 2020 15:47
XAMPP version: 3
Operating System: linux

Re: help needed setting up virtual host on apache

Postby Nobbie » 24. February 2020 01:27

No, virtualhost cannot do that. Instead use an ALIAS for your folder. See https://httpd.apache.org/docs/2.4/mod/mod_alias.html
Nobbie
 
Posts: 11606
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 13 guests