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:
- The main configuration file in "/etc/nginx/nginx.conf"
- Default server block: "/etc/nginx/sites-available/default"
- Other server blocks (virtual hosts): Additional files in "/etc/nginx/sites-available/" and they are symlinked to "/etc/nginx/sites-enabled/" when activated.
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.