Default public web root

If you installed Mixpost using the Standalone method you may instruct your web server(Nginx/Apache/Anything else) the default public web root.

You should set the default public web root to the "/public" folder of the Mixpost Standalone project.

Nginx

In Ubuntu/Debian, you can find the:

server {
    listen 80;
    root /var/www/your-mixpost-project/public;
    index index.php index.html;

	// your nginx configs
}

Remember, after making changes to any Nginx configuration file, you should restart the Nginx service to apply the changes.

sudo systemctl restart nginx

Apache

In Ubuntu, you can find the default virtual host: "/etc/apache2/sites-available/000-default.conf".

<VirtualHost *:80>
    ServerAdmin webmaster@yourdomain.com
    DocumentRoot "/var/www/your-mixpost-project/public"
    ServerName yourdomain.com
    ServerAlias www.yourdomain.com

    <Directory "/var/www/your-mixpost-project/public">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    // your apache configs
</VirtualHost>

Remember, after making changes to any Apache configuration file, you should restart (or reload) the Apache service to apply the changes.

sudo systemctl restart apache2
sudo systemctl reload apache2

Plesk

Open your Plesk panel, then go to “Hosting settings”. Change the “Document root” value to match the “public” folder.

plesk-change-web-root.png


Revision #3
Created 16 June 2023 12:50:19 by Dima Botezatu
Updated 25 October 2023 14:33:35 by Dima Botezatu