-
Notifications
You must be signed in to change notification settings - Fork 67
Configure Nginx for PIA
Kevin Beyrand edited this page Mar 13, 2023
·
2 revisions
Create a new file in /etc/nginx/sites-available
sudo nano /etc/nginx/sites-available/pia
And paste:
server {
root /var/www/pia/dist/pia-angular;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name _YOUR_DOMAIN_NAME_;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
}
Enable this new site:
sudo ln -s /etc/nginx/sites-available/pia /etc/nginx/sites-enabled/pia
Then restart Nginx:
sudo systemctl reload nginx