Category : virtualhost

I think that i have some problem on how ive written the virtualhost file for 2 laravel sites, that I need thats works as "subfolders" on a vps. So the result should be something like: ip/site1 ip/site2 My virtual host file is: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html Alias /test /var/www/html/test/public Alias /tuttometeo /var/www/html/tuttometeo/public <Directory ..

Read more

I am using virtual hosts for my laravel web development but now I wanted to "refresh" my knowledge of PHP. But I have an issue when I type localhost I get one of my virtual hosts and then I cant for example type localhost/php-projects/index.php because there is no such link as php-projects in my virtual ..

Read more

I have a locally created laravel RESTFUL API and I deployed it on my ec2 ubuntu server using git. I’ve set it like my main website.. /var/www/api.myapp.com/public_html/myapp-be and for its config I have this /etc/apache2/sites-available/api.myapp.com.conf. Almost all blogs and tutorials that I found about deploying laravel on apache2 ubuntu server were almost the same and ..

Read more

I am trying to direct virtualhost domain http://czy.local to /var/www/czy/public directory. No matter how much I try, it goes to /var/www/html default directory, no idea why. I have restarted nginx several times, also restarted the ubuntu. /etc/nginx/sites-enabled/default looks like this: server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; server_name czy.local root /var/www/czy/public; index index.php ..

Read more

I have setup a virtual host for my laravel 7.1 based project at local host. project views get loaded accordingly but included CSS and JavaScript assets give error like: 404 NOT FOUND when I try to load it with HTTTP protocol this error occured.But if I manually give asset path as https://nameserver.com/laravel/assets/styles.css this resource get ..

Read more

I have two different laravel apps running locally on xampp. I’ve noticed that if one app makes an API call to the second app than the latter uses the database connection of the first app instead of it’s own db connection. Is the second app not bootstraping or does it’s connection get’s overwritten? Did anyone ..

Read more