Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Do I need duplicate all new configuration entries (location = ... ) from #Part 1 to PART 2 in Nginx virtual-host configuration file? Eg.:

FIRST PART of /etc/nginx/sites-available/

server {
    listen 80;

location = / {
    try_files $uri $uri/ /index.php?q=$uri&$args;

SECOND PART of the same file

server {
    listen 443;

share|improve this question

closed as off-topic by hhlp, guntbert, Eric Carvalho, karel, Braiam Mar 2 '14 at 1:32

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – guntbert, Eric Carvalho, karel
If this question can be reworded to fit the rules in the help center, please edit the question.

This should be on Serverfault: – TimWolla Dec 6 '12 at 17:47

Oh! I'm didnt realise that second 443 port is https port so I need to duplicate values if I want the same configuration for https. Everything clear now :-)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.