Page MenuHomeDevCentral

Create devcentral51.nasqueron.org
Closed, ResolvedPublic

Description

Create a nginx entry for dev version of our Phabricator instance:

  • Server: Ysul
  • Vhost: devcentral51.nasqueron.org
  • Folder: /home/dereckson/dev/nasqueron/devcentral/phabricator
  • php-fpm port: 9003

Event Timeline

dereckson claimed this task.
dereckson raised the priority of this task from to Normal.
dereckson updated the task description. (Show Details)
dereckson added projects: DevCentral, Servers.
dereckson added a subscriber: dereckson.

Nginx

    # Requested by Dereckson
    # Requested at 1430016595
    server {
        listen          80;
        listen          [2001:470:1f12:9e1::2]:80;
        listen          [2001:470:1f13:9e1:0:c0ff:ee:1]:80;
        server_name     devcentral51.nasqueron.org;
        access_log      /var/log/www/nasqueron.org/devcentral51-access.log main;
        error_log       /var/log/www/nasqueron.org/devcentral51-error.log;
        root            /home/dereckson/dev/nasqueron/devcentral/phabricator/webroot;

	location / {
		index index.php;
		rewrite ^/(.*)$ /index.php?__path__=/$1 last;
	}

	location = /favicon.ico {
		try_files $uri =204;
	}

        location ~ \.php$ {
            try_files $uri =404;
            fastcgi_pass   127.0.0.1:9003;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }   
    }

DNS

devcentral51.nasqueron.org.	86400	IN	CNAME	www1.nasqueron.org.

Works but some issues with configuration.