I have configured a vagrant file, and I need a dev.domain.com pointing to 55.55.55.5/public
My website works with the /public folder, but in the dev.domain.com I need to enter to public/ to see the page, so all styles, javascripts and files that points to "/", are broken due to the /public in the url.
Anyone can help me?
vagrantfile:
Vagrant.configure(2) do |config|
config.vm.box = "avenuefactory/lamp"
config.vm.network "private_network", ip: "55.55.55.5"
config.vm.synced_folder ".", "/var/www/html", create: true, group: "www-data", owner: "www-data"
end
hosts file :
55.55.55.5 dev.domain.com
What I need is "something" making dev.domain.com pointing to 55.55.55.5/public.