Nginx Task
Nginx Task
• server {
• listen 80;
• server_name axispay.com;
• root /var/www/axispay.com;
• index index.html;
• location / {
• try_files $uri $uri/ =404;
• }
• }
• server {
• listen 80;
• server_name axis-01.com;
• root /var/www/axis-01.com;
• index index.html;
• location / {
• try_files $uri $uri/ =404;
• }
• }
• sudo nginx -t
8. Restart Nginx
For testing purposes, update your local /etc/hosts file to map the domain names to your
server’s IP address.
Add the following lines, replacing your_server_ip with your actual server IP address:
• your_server_ip axispay.com
• your_server_ip axis-01.com
• your_server_ip axis-02.com