Configs

By Lucas, 3 Days ago, written in text.
===============.htaccess=================

# .htaccess file for The Bug Genie

# make sure that magic_quotes and register_globals is always off
<IfModule mod_php5.c>
        php_flag magic_quotes_gpc       off
        php_flag register_globals       off
</IfModule>

# rewrite rules
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /thebuggenie/
# Example:
# RewriteBase /
# or
# RewriteBase /dev/thebuggenie

  # skip all hidden files (starting with a .)
  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.(html|wsdl|json|xml)$
  RewriteRule .* - [L]

  # redirect to front controller
  RewriteRule ^(.*)$ index.php?url=$1 [NC,QSA,L]

</IfModule>

# Stop people accessing directories they shouldn't have access to
RedirectMatch 403 ^/\.svn(/|$)

=============END .htaccess==============
=============NGINX.conf================
 server {

        server_name IRRELEVANT;
        root /var/www/bgenie;
        index index.php;

        location / {
            #try_files $uri $uri/ /thebuggenie/index.php?url=$uri;

        }

        location ~ \.php$ {
            #rewrite ^.+ http://bgenie.ajnstudios.com/index.php?url=$uri;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            include fastcgi_params;
            fastcgi_index index.php;
            fastcgi_param  SCRIPT_FILENAME  /var/www/bgenie/$fastcgi_script_nam$
            fastcgi_intercept_errors on;
            fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
        }

    }
============END NGINX.conf=============