Questions tagged as 'apache'

1
answer

How to restrict GET requests from other sites?

I'm trying to prevent other sites from copying my download links, but they're not conventional (they are not formatted at the end), so I can not block through Apache's mod_rewrite. So I decided to block GET requests from other sites, but the...
asked by 19.01.2018 / 04:08
1
answer

FTP alias from / home to / www

Live, I created ubuntu all the necessary configuration to access by FTP, but at some point I encountered a problem: I restrict each user to only access his / home / $ USER folder, but I want each user to access the / www / $ DOMAIN Is i...
asked by 22.11.2014 / 16:50
1
answer

Error 500 when using rewrite with the same file name (/ tag / does not go to /tags.php)

Recently I migrated my server to Ubuntu 14.04 with PHP 5.5.9 and Apache / 2.4.7, but rewrite that has string with filename simply does not work. Error 500 RewriteRule ^tag/?(.*)/?$ /tags.php?tag=$1 [L] It works RewriteRule ^tag...
asked by 05.06.2014 / 21:05
1
answer

"/" Site root in PHP

I'm sorry if I'm repeating any questions here, but I've searched and did not specifically find my problem, so come on. I did a video tutorial, and I created a PHP site in which, on my machine (windows 10 with Xamp) I edited the HOSTS file, I...
asked by 04.10.2018 / 15:43
1
answer

Apache does not read subfolders or other files

Recently, I formatted my computer and installed Ubuntu 14.04 and as always, I changed the apache document root to: / home / user / workspace / web. Inside this folder I've cloned a project of mine done in CakePHP 2.4, but my project is just o...
asked by 12.05.2014 / 22:56
1
answer

Htacess rewrite does not open index

Hi, I have this .htacess RewriteEngine On RewriteBase / RewriteRule ^(css|images|js|fonts) - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^([^\.]+)$ $1....
asked by 02.09.2016 / 04:18
1
answer

How to change the site folder in Apache2?

I need help setting up LAMP. Everything is working perfectly. The things I would like to change are mere quirks, but I still find it interesting. I would like to change the root directory. In case you are in: /var/www/html , I would lik...
asked by 28.12.2018 / 21:39
1
answer

How to do the redirection of addresses in the internal network by the modem? [closed]

I would like to know how to redirect local addresses within the internal network through the modem, for example: if someone inside the network access the address www.example.com should be redirected to a specific page on a machine on the network...
asked by 08.09.2016 / 21:38