the_race_east
08/06/2024, 9:28 AMVapi
08/06/2024, 9:29 AM/etc/nginx/sites-available/ or /etc/nginx/conf.d/ and is usually named after your domain or application.
2. Look for the server block in the configuration file. Inside this block, you'll find a listen directive that specifies the port number. It might look something like this:
server {
listen 8000;
server_name example.com;
...
}
3. Change the port number from 8000 to the port you wish to use. For example, if you want to use port 8080, you would update it to:
server {
listen 8080;
server_name example.com;
...
}
4. Save the changes to the configuration file.
5. Test the Nginx configuration for syntax errors by running sudo nginx -t.
6. If the configuration test is successful, reload Nginx to apply the changes with sudo systemctl reload nginx or sudo nginx -s reload.
Remember to update any firewall rules or security group settings to allow traffic on the new port if necessary.
If you need further assistance with the configuration or have any other questions, feel free to ask!Vapi
08/06/2024, 9:29 AMthe_race_east
08/06/2024, 9:30 AMVapi
08/06/2024, 9:31 AMthe_race_east
08/06/2024, 9:33 AMShubham Bajaj
08/06/2024, 9:40 PMthe_race_east
08/07/2024, 6:11 AMSahil
08/15/2024, 9:11 PMSahil
08/15/2024, 9:11 PM