Sample Header Ad - 728x90

How to resolve (40: Too many levels of symbolic links) on Ubuntu 10.04 AWS EC2 Instance

8 votes
2 answers
22000 views
In my EC2 Ubuntu 18.04 instance, I have created an **django.conf** file at */etc/nginx/sites-available* The .conf file looks like so : server { listen 80; server_name *[url_name]*; location / { include proxy_params; proxy_pass http://unix:/home/ubuntu/ZTS-JOBCARDS/app.sock ; } } and when I ran sudo nginx -t before trying to link the files to **/etc/nginx/sites-enabled/** the result came back positive However, after I had linked the files like so: sudo ln -s django.conf /etc/nginx/sites-enabled/ The nginx -t command returns the following error ; > nginx: [emerg] open() "/etc/nginx/sites-enabled/django.conf" failed > (40: Too many levels of symbolic links) in /etc/nginx/nginx.conf:62 > nginx: configuration file /etc/nginx/nginx.conf test failed What would cause this error and are their any guides to fixing it ?
Asked by KyleStranger (183 rep)
Jan 21, 2022, 08:50 AM
Last activity: Jan 6, 2025, 08:37 AM