UTCWeb / utcapiproxy

Multipurpose Laravel App
0 stars 2 forks source link

Apache config gets corrupted from time to time #6

Closed bmartinez287 closed 6 months ago

bmartinez287 commented 1 year ago

Modify the laravel_project.conf contents so that they look like this maybe?

NameVirtualHost *:8080 Listen 8080

<VirtualHost *:8080> ServerAdmin admin@example.com ServerName laravel.dev ServerAlias www.laravel.dev DocumentRoot /home/user/projects/laravel_project/public

<Directory /home/user/projects/laravel_project/public/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
        Require all granted
</Directory>

LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

https://phpraxis.wordpress.com/2016/08/02/steps-for-configuring-laravel-on-apache-http-server/

https://github.com/UTCWeb/utcapiproxy/blob/develop/public/.htaccess

bmartinez287 commented 1 year ago

https://github.com/UTCWeb/utcapiproxy/blob/develop/public/.htaccess

UTCGilligan commented 6 months ago

I think this was probably due to the automated server config cron that copies config periodically from 11 to 12. This has been disabled so it can be run manually whenever server config needs to be copied from 11 to 12.