Virtual Host for Laravel with apache2

WhoAmI => notes.sohag.pro/author
Search for a command to run...

WhoAmI => notes.sohag.pro/author
No comments yet. Be the first to comment.
If you have a website running on apache2 and SSL certificate installed, but your visitors are landing on http connection sometimes, then you are in the right place. Find your active htaccess file in the server. If there is not any, create one. Use th...
I had a solid list of reasons my life wasn't moving faster, until a grainy old lecture pointed out the one name missing from it

The finale isn't a victory lap. It's the story of the control I shipped that did nothing, the footgun still sitting in my demo, and the handful of things I'd keep exactly as they are.

How do you hold a large payment for a second pair of eyes without ever letting the unapproved money touch a balance, and how do you stream that decision to the outside world without standing up a broker?

How do you show the total under a parent account when the whole system refuses to store a balance? A recursive query, a trigger that refuses to draw a circle, and a rule about what actually has to sum to zero.

Every time I wanted to change an FX rate I had to edit a file on the server and restart the app. So I moved rates and markup into a live admin API, and then audited it hard enough to find the bug that quietly undid the whole thing.

You have new Linux PC with fresh apache2 installation. Now you don't know how to point to your Laravel site? Let's follow the below steps.
Add your desired domain name in /etc/hosts (example: myblog.test you can give anything here and you should put it exact same in the virtual host config ServerName option)
127.0.0.1 myblog.test
apache2 virtual host config. Add this to /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
ServerName myblog.test
DocumentRoot "path/to/laravel/public"
<Directory "path/to/laravel/public">
AllowOverride Al
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Replace this path (path/to/laravel/public) with your project path
Enable mod_rewrite if not enabled
sudo a2enmod rewrite
Now restart the apache2 server
sudo service apache2 restart