Apache
When you go the the download link and you get a 404 error please check if the .htaccess file exists in the main directory of Droppy (so not the uploads/ directory). Sometimes it happens that the .htaccess file gets hidden by your OS when you're trying to find it or uploading it to your server, to change your file view please look here:
For windows:
http://windows.microsoft.com/en-us/windows/show-hidden-files#show-hidden-files=windows-7
For mac:
http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/
For (most) linux distributions:
http://www.ghacks.net/2009/04/16/linux-tips-view-hidden-files/
Nginx
Nginx uses a different configuration to do the URL rewriting, this configuration should be in your Nginx directory (E.g. /etc/nginx/). If you're on a shared hosting account we will suggest you to ask your hosting provider where to find the configuration file.
For Droppy you should use the following code to apply the URL rewrite to your website:
server { server_name yourdomain.com; root /var/www/html; index index.html index.php; location / { # Check if a file or directory index file exists, else route it to index.php. try_files $uri $uri/ /index.php; } location ~* \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi.conf; } # Deny for accessing .htaccess files for Nginx location ~ /\.ht { deny all; } # Deny for accessing codes location ~ ^/(application|system|tests)/ { return 403; } }
Make sure to check the configuration and make the necessary changes.
Now save the configuration and restart Nginx to apply the changes.
Comments
0 comments
Article is closed for comments.