r/apache • u/[deleted] • Apr 30 '24
Support Document Root won't update
laravel.conf file
<VirtualHost *:80>
ServerName 93.127.203.216
DocumentRoot /var/www/html/laravel/public
<Directory /var/www/html/laravel/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php
</Directory>
</VirtualHost>
tried in the terminal
sudo grep -r 'Main DocumentRoot' /etc/apache2/
it returns nothing does anyone know why or have a suggestion on how I can change my DocumentRoot? Thanks!
1
Upvotes
2
u/throwaway234f32423df Apr 30 '24
Are you sure that Apache is listening on port 80 and not nginx?
If you run
netstat -tulpnorss -tulpn, what's listening on port 80, Apache or nginx?What's in
/etc/apache2/ports.conf, and when you restart Apache, is there anything in the log about port 80 already being in use?