On my network I have an Ubuntu 12.04 server running Samba4, my domain is fully configured and functional.

Now, I would like to enable VPN access over the internet, and have another box to do so. I have been searching on the internet for guides and information etc, but have not been successful.

I have however found this guide http://www.howtogeek.com/51237/setting-up-a-vpn-pptp-server-on-debian/ but was wondering if I could adapt it somehow to enable access to my DC services.

EDIT: I would need to authenticate my VPN server with my DC, if that is possible of course.

Any insight would be wonderful.

Regards,
Jack Hunt


Question: Nginx rewrite rules
Answer: The correct Nginx rewrite rules for WordPress are:

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


This sends everything through index.php and keeps the appended query string intact.  

If your running PHP-FPM you should also add this before your fastcgi_params as a security measure:

location ~ \.php {
        try_files $uri =404;

      //  fastcgi_param ....
      //  fastcgi_param ....

      fastcgi_pass 127.0.0.1:9000;
}