ubuntu – Allows web users to write to a folder on Nginx

I have a website on the Nginx server on Ubuntu and I uploaded profile pictures in Django. However, when I try to upload a new profile picture, it says

[Errno 13] Permission denied: & # 39; /home/xyz/djangodir/media/profile_pics/profilepicxyz.png'

How can I allow users to write in that? /profile_pics Folder is?

I'm an absolute beginner in servers and nginx, so it could be a really easy task.

boot – DESKTOP – UBUNTU 18.04 – 32 BIT – BOATS & LOGGING IN THE PROBLEM

I was unable to open my PC today because the boot was stuck halfway and the normal login page was not displayed. The result is given in the attached file. Shot 1.jpg. After that I applied Ctrl + Alt + F4 to login, but that also failed. The result is shown below. Ctrl + Alt + F4.jpg.Shot 1.jpg I need help to solve the problem.
Ctrl + Alt + F4.jpg

04/18 – Monitor stops working after Ubuntu update

I installed Ubuntu 18.04 on an older desktop and it was updated regularly last week, after that the monitor stopped working.

The strange thing is that work doesn't stop until you click on the login screen. Then only "input not supported" is displayed. Generally, if I connect it to another monitor after logging in, it will work until it restarts.

I tried changing the resolution on Ubuntu to 1440X900 (this allowed me to use the monitor after logging in), installing arandr and changing the display manager to lightDM. Any suggestions for the problem? The monitor is an Acer AL1916w, if that helps. Thanks a lot!

Network – website doesn't work on my Ubuntu computer

I tried to host my website from home on Ubuntu 18.04 LTS, but I couldn't, so I bought web hosting and the website works now. The only problem is that I tried to set up the domain name on the Apache server. I really didn't know what I was doing. I just followed an online tutorial and posted it ServerName to mydomain.com in the .conf file. I removed the domain (virtual host) .conf file from /etc/apache/sites-enabled and /etc/apache/sites-available But still when I visit the website from this computer, I get the Apche2 Ubuntu default page. So what can I do to undo this?

ubuntu – Nginx error in Docker container: (111: Connection refused) when connecting to the upstream client

I run a Django app with Nginx in a Docker container and everything went fine until I rebuilt the container. Suddenly I get a 502 (Bad Gateway) error and the logs say

(111: Connection refused) during the connection to the upstream, client: 216.245.221.82

I have no idea what has changed, to be honest, and I'm new to Nginx. The Django / Python code should not have changed. I'm pulling the latest Nginx image, so there may have been a change that doesn't work well with my configuration. But I also tried older versions and get the same error. Maybe my app crashes because there is no port it is listening on? (see the screenshot)

I tried to customize ALLOWED_HOSTS ('*')Set SSL_NO_VERIFY to True and False, still the same error. I have no more options … I don't know how to debug it better. The app works well on site, so setting the debug to True didn't help me.

I just do not know. I deploy my app on an EC2 instance with nginx in a Docker container.

Here are my configurations and my build file:

server {

    listen 443 ssl;
    server_name mywebsite.de;
    client_max_body_size 0;
    charset utf-8;
    ssl_stapling off;
    ssl_stapling_verify off;

    ssl_certificate            /etc/letsencrypt/live/mywebsite.de/fullchain.pem;
    ssl_certificate_key       /etc/letsencrypt/live/mywebsite.de/privkey.pem;


    set $my_host $http_host;
    if ($http_host = "mywebsite.de") {
          set $my_host "mywebsite.de";
    }


    location / {
        proxy_pass http://django:5000;
        proxy_set_header Host $my_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

}

server {
        listen 80 ;
        server_name mywebsite.de;
        return 301 https://mywebsite.de$request_uri;
}
server {
        listen 80 ;
        server_name www.mywebsite.de;
        return 301 https://mywebsite.de$request_uri;
}
server {
        listen 443 ;
        server_name www.mywebsite.de;
        return 301 https://mywebsite.de$request_uri;
        ssl_stapling off;
        ssl_stapling_verify off;

        ssl_certificate           /etc/letsencrypt/live/mywebsite.de/fullchain.pem;
        ssl_certificate_key       /etc/letsencrypt/live/mywebsite.de/privkey.pem;
}

version: '3'

services:
  django:
    build:
      context: .
      dockerfile: ./compose/production/django/Dockerfile
    image: my_website_production_django
    env_file:
      - ./.envs/.production/.django
      - ./.envs/.production/.postgres
    command: /start

  nginx:
    container_name: 'nginx'
    image: nginx:latest
    ports:
      - "80:80"
      - "443:443"
    volumes: ##The following files are found on AWS EC2 instance.
       - /home/ubuntu/nginx-conf/my.conf:/etc/nginx/conf.d/default.conf
       - /etc/letsencrypt/live/mydomain.de/fullchain.pem:/etc/letsencrypt/live/mydomain.de/fullchain.pem
       - /etc/letsencrypt/live/mydomain.de/privkey.pem:/etc/letsencrypt/live/mydomain.de/privkey.pem
    depends_on:
      - django

  redis:
    image: redis:5.0

You are welcome to provide further information or code if required. Really desperate and grateful for help. Thank you very much.

WLAN – "No Internet access" in Windows 10 after restarting Ubuntu

For some reason, a similar internet icon will appear every time you start Windows after Ubuntu. This only happens if the last boot operating system is Ubuntu.

The adapter I use may lose the connection that I use in Windows, but keep the Ubuntu connection as the main connection. However, I am not sure. I don't really like having to unplug the adapter and plug it back in to restore the connection.

Passwords – Fully secured screen lock in Ubuntu with encryption

I understand that what you are looking for is a combination of several different things that are probably too broad for a single question.

This should give you an idea of ​​how you can encrypt under Suspend on Linux.

Is there a secure screen lock (no error, no security hole against X11 crashes, etc.)?

Nothing is absolutely safe and immune to errors or weak spots. I would look around and consider different options. Note that there may be incompatibility issues between a custom lock screen application and your desktop environment (if applicable).

Can I use home encryption in addition to full hard drive encryption and set the screen lock so that the same password unlocks and decrypts the home drive (I don't want to enter two passwords)?

This depends on the implementation of your special lock screen and the encryption configuration.

Protection from cold start attacks and access to physical ports or tampering are other issues that you can access with a lot of material. You gain more traction by doing some research, choosing specific areas to clear, and asking them as separate questions.

Sftp Ubuntu Server

I have set up an SFTP server with Ubuntu. I tested with credentials that I will pass the external company on, and it falls exactly where I need it. I have some
Internal users who have to log on to the SFTP server to retrieve data from it. The question I have is how can I set up these users.