Questions tagged as 'apache'

2
answers

Rewrite - How to redirect everything without index.php

I would like to redirect all requests from my Apache server to the test.php file and remove the index.php file from the root_folder (public_html or DocumentRoot). I have the following code: RewriteEngine On RewriteBase / RewriteRule . test....
asked by 28.09.2015 / 03:08
1
answer

Redirect any html extension URL to a specific page

Please, I have a question in .htaccess (or apache). I need to redirect any url containing .html or .htm extension to a specific url. Example: domain.com/test.html - > domain.com/page domain.com/teste123.htm - > domain.com/page...
asked by 04.09.2015 / 00:55
1
answer

Redirect Rest service with .htaccess

I have a folder in my project called api , and inside it a .htaccess file that should redirect the requests (made via jquery) to the app/controllers/rest/ folder which also has a file .htaccess and a file named en...
asked by 17.03.2015 / 04:13
2
answers

Apache results in Service Unavailable after installing nginx and hhvm

I have installed Nginx and HHVM to test the Hack language. All perfect, I can program in Hack and PHP using this set. However, by giving stop in Nginx and HHVM and start in Apache 2 it throws Erro 503 Service...
asked by 27.03.2015 / 20:38
1
answer

Host two websites in a single VPS

I'm trying to host two different websites in the same VPS. What are the correct procedures for doing this? The apache server is already installed and I can host files there. But I can not host two different websites. My httpd.conf...
asked by 08.01.2015 / 18:43
1
answer

Redirect HTTPS to HTTP using .htaccess

Operating system: ubuntu 14. Web server: apache2. Friends, I already researched this and can not redirect the url, which is inserted with the https protocol, for the same url, only with http. The opposite is easy for me to use .htaccess (h...
asked by 17.12.2014 / 22:47
1
answer

Url rewrite does not work on https

I have the following problem: My .htaccess defines my URL rewrite that works perfectly when accessed by http but when accessed by https it informs that the page was not found. Below is my .htaccess. AddDefaultCharset UTF-8 RewriteEngine on R...
asked by 25.02.2015 / 14:32
2
answers

Because my VirtualHosts point to the root folder.

I'm using Apache 2 in Ubuntu 14.04 . I moved the www/html folder to my other /media/Dados/www partition. But that's not the problem. The problem starts when I set a vhost to a subdirectory: Subdirectory: /media/Dados/...
asked by 23.10.2014 / 21:07
1
answer

Virtual server EC2 receives requests but can not access another host

I have a virtual machine in Amazon AWS with Ubuntu where I installed Apache2, PHP5 and MySql myself. Everything was running well, well configured, my site working very well on it. Until suddenly the virtual machine has stopped accessing other...
asked by 09.05.2014 / 13:49
2
answers

Apache Forbidden 403 on Elementary OS

After updating my PHP / APACHE I can no longer access my projects through the browser, it returns the error Forbidden 403 . Environment Information: PHP 5.5.12-1 + deb.sury.org ~ need + 1 (cli) (built: May 8 2014 21:14:40) Server versi...
asked by 11.05.2014 / 22:01