Category : webserver

I’m having a little trouble with nginx in a docker container. This is my .conf file in /etc/nginx/conf.d/: server { listen 80 default_server; listen [::]:80 default_server; server_name _; return 301 https://$host$request_uri; } server { ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; listen 443 ssl; listen [::]:443 ssl; server_name example.com; keepalive_timeout 70; ssl_certificate /data/cert/server.chained.crt; ssl_certificate_key /data/cert/server.key; ssl_protocols TLSv1 TLSv1.1 ..

Read more

I want to have a domain, then have locations and in each location I proxy pass the requests to a certain docker container that has nginx inside, here follows my current configuration: upstream magento235 { server localhost:10080; } upstream magento241 { server localhost:10090; } server { server_name my_domain; client_max_body_size 32M; location /magento235 { proxy_pass http://magento235; ..

Read more

I’m using the Apache httpd image to create a simple web server. I wanted to know how I can use it so that when I start my server I can view the files in a folder named ‘my_directory’ via the browser. Here is my Dockerfile: FROM httpd COPY ./my_directory/ /usr/local/apache2/htdocs/ COPY ./my-httpd.conf /usr/local/apache2/conf/httpd.conf EXPOSE 80 ..

Read more