Most voted "apache" questions
Apache HTTP Server, commonly referred to as Apache, is an open-source HTTP server. Use this tag for software development issues that specifically involve Apache HTTP Server. Do not post Apache HTTP Server configuration and support issues, these are not within the scope of the site.
Learn more…631 questions
Sort by count of
-
0
votes2
answers834
viewsDate in Portuguese returning in English
I am using this code to return the current date in English (locally): <? setlocale(LC_ALL, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese'); date_default_timezone_set('America/Sao_Paulo');…
-
0
votes1
answer58
viewsSetting Domain for Wordpress Page Structure
I have a Wordpress installation with several "sites".. I will explain: site-main.com/ -> opens a blank page (index.php, with no redirection in options/reading) site-main.com/site-um ->…
-
0
votes2
answers2068
views -
0
votes1
answer613
viewsURL and PORT forwarding in . htaccess
Following, I have a URL: http://ip_do_server/fop2 What I wanted to do is, when someone enters this url, apache redirects to the following address: http://ip_do_server:81/mesa_contact/login I’ve…
-
0
votes1
answer130
viewsHow to Design Wamp for Lamp
I have a Windows finished project (wampserver) using Laravel 5.2 in php 5.5.12 working perfectly. I’d like to know how to copy it to the server that is in Centos 7. Which is PHP 7. If I install…
-
0
votes1
answer1419
viewsGoogle Chrome Redirecting to HTTPS on localhost or virtual host
Good morning to all. Recently, I do not know if it was a google update, their browser started to make a strange redirect. I have apache server and when I enter a url configured in localhost, even if…
-
0
votes0
answers72
viewsPython with CGI and WEB
I made a simple code in python that displays on a web page the version of the user’s operating system and configured my web server that runs on linux to be compatible with CGI. My webserver runs on…
-
0
votes0
answers60
viewsError starting CWP Centoos + Apache
Guys I use CWP to manage my domains where I put my systems in PHP, it turns out that today creating a domain the server generated an error, I think some bug, and I can no longer start Apache or CWP,…
-
0
votes1
answer25
viewsCan you ignore a page in the apache log?
I’m developing a page which will permanently consult via Ajax, it turns out that the Apache access log will fill up very quickly and this brings me a problem of server space, I wondered how to treat…
-
0
votes1
answer45
viewsMongo driver for php only works with mpm_prefork?
Seeking a better performance for my application I changed the MPM of apache of prefork for event, but when restarting apache with the new processing module the mongodb does not work, while accessing…
-
0
votes1
answer45
viewsApache2 error while installing
While trying to perform apache2 installation occurs the following errors, could anyone please help me.…
apacheasked 6 years, 10 months ago Renan Nascimento 1 -
0
votes1
answer479
viewsProblems with mod_rewrite in Apache
I enabled mod_rewrite in local Apache, but it doesn’t seem to be working. I’m using Linux Deepin 15.5 and the process I did was: sudo a2enmod rewrite The answer I got: Enabling module rewrite. I…
-
0
votes0
answers181
viewsHow to block and remove a range of Ips from a city/state in . htaccess?
wanted to temporarily block some states of Brazil not to access my site, as I can do this through htaccess. In fact, the hardest thing is to discover this range of Ips from each state or city? Thank…
-
0
votes1
answer182
viewsHow to receive data from a Rest API using Apache Camel
And how do I receive data from a server REST passing an authorisation of the type basic in the header? I’ve tried so many ways and it doesn’t work, and when I test Postman, works normally. I’ve…
-
0
votes2
answers1785
viewsHow to configure virtualhost for xampp on Ubuntu
Can anyone teach you how to set up a virtualhost for xampp in Ubuntu? I’ve tried this tutorial https://ourcodeworld.com/articles/read/302/how-to-setup-a-virtual-host-locally-with-xampp-in-ubuntu but…
-
0
votes1
answer102
viewsHow to avoid installing Apache when installing php7.1 on Ubuntu 16.04?
I have the following code that installs php7.1 on Ubuntu 16.04: sudo apt-get install -y software-properties-common sudo add-apt-repository -y ppa:ondrej/php sudo apt-get update sudo apt-get install…
-
0
votes0
answers58
viewsCreate a domain on wampserver
Hello, I need to create subdomains in wampserver to be able to split projects that need singularities in . htaccess Any hint?
-
0
votes0
answers181
viewsPermission denied when deleting an unlink file from php
When trying to remove a file the following message appears: ( ! ) Warning: unlink(./files/ecommerce.vip): Permission denied in G:\apache\www\import_emails\index.php on line 28 Call Stack # Time…
-
0
votes1
answer76
viewsURL redirection http
I’m trying to do a url redirect, but it’s not working, could someone tell me what’s wrong? <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{QUERY_STRING} ^(.*)/teste(.*)$ // verifica se…
-
0
votes0
answers260
viewsApache does not read subdirectories
Hello, I’m starting with Linux now and I’m trying to set up an Apache server for test purposes. I am using Debian 9 and have already installed Apache, PHP 7.0, libs and Mariadb. Through the browser…
-
0
votes1
answer250
viewsConfigure Production and Approval paths on the server
The server had version 5.5 of the PHP, then I had to switch to 7.1. But after restarting the apache, no longer loads the site. There used to be the main website (production) and the testing…
-
0
votes1
answer439
viewsGenerate error 403 php
Hello, I have a php page where I wanted when the user was not logged in to generate a 403 error and present a default page in apache. The default 403 error page is working, I just wanted it to error…
-
0
votes0
answers232
viewsI can’t see the . htaccess file or binary files on ftp
I use a Ubuntu 16.04+apache+vsftpd instance in Amazon ec2. I cannot see the file . htaccess via ftp, but in vps it is there. What can it be? Binary files I also can’t see via ftp, will the problem…
-
0
votes0
answers97
viewsApache Commons Email Base64 Image
I have software to send emails that use apache Commons email to send html emails, I also have in the database a string that represents an image Base64 example data:image/png;base64,iVBORw0K .... I…
-
0
votes1
answer346
viewsREQUEST_URI or REDIRECT_QUERY_STRING?
Well, I’m doing a friendly url class and in the file CONFIG.PHP I gave a define in the following define('UA',explode('/',$_SERVER['REDIRECT_QUERY_STRING']??null)); But when I type the existing file,…
-
0
votes1
answer654
views.htaccess Internal Server Error
I want to make my Urls more friendly and am using the .htaccess for that reason. The problem is that it is returning me an Internal Server Error, and I could not identify where my Rule error is.…
-
0
votes1
answer1310
viewsIs there any way to recover the history of all queries executed on a Mysql server?
I have a transaction in a table of a Mysql and (php+apache) database. I wanted to know if I could recover (either in apache log or Mysql log) the ip from which the query that made this insertion was…
-
0
votes3
answers585
viewsHow to use Rewrite to include subdirectory and Slug?
Edition: I refined the information based on the answers and questions of the employees. internal urls in menus: a href="/cursos/matem/? Slug=Algebra-linear">Mathematics Algebra a…
-
0
votes1
answer61
viewsApache Tomcat mirroring - Work
Explanation : Currently when we update our client’s project it is "off the air" during this update, the idea is to be able to update the project without having to stop the client, I saw something…
-
0
votes2
answers72
viewsHow to assemble a basic Virtualhost to rewrite Urls in my Xampp htdocs project
Following the model proposed in the file itself httpd-vhosts.conf <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "C:/xampp/htdocs/dummy-host.example.com"…
-
0
votes1
answer3521
viewsConfigure Laravel Application on Production Server
Someone who has already deployed application in Laravel on Centos 7 Production Server to give me a hand?? I have done all the basic possible settings, created Virtualhost pointing to the public…
-
0
votes2
answers350
viewsHow do I set apache to ignore the directory in the url?
I have a directory inside my root folder called "mydir" where there are several files, currently I access these files so: http://mysite.com/mydir/myarchive.html My question is I have how to…
-
0
votes0
answers844
viewsHow to access Virtual Host from another pc on the same network
I want to access my site that is in #PC1 by mobile or #PC2, but I can only access it by the computer itself where it is, and if I try to enter from another computer only works if I put the IP of my…
-
0
votes2
answers609
viewsError starting Apache Tomcat 9
Question: Error while starting Apache Tomcat 9 GRAVE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to initialize…
apacheasked 6 years, 4 months ago Jheimis Marques 3 -
0
votes2
answers1021
viewsHow to run a python script that is located on another machine
I have 2 Raspberry and a windows computer that has an apache server. I want to run a script that is on the server from these 2 Raspberry. I type in the command line: sudo python3…
-
0
votes3
answers2359
viewsChange htdocs from XAMPP to USB stick folder (or use XAMPP on Pendriver)
I already researched a lot, I changed everything that was line httpd.conf and httpd-xampp.conf but nothing went right. I am trying to change the default htdocs xampp folder to a folder on my…
-
0
votes1
answer739
viewsConfigure arrival route in pfsense
Guys, I’m trying to get my app up in the air, but I have no idea which way to go. It is a server developed in grails, already managed the . War and it runs on top of tomcat7, when access locally and…
-
0
votes0
answers28
viewsConnect my pc database to hosting
I want to connect the hosting in the local database of my PC I am using linux. I have ports 1604 and 8080 open. When I access my ip:port on an external network, I can access my website. But when I…
-
0
votes1
answer256
viewsDynamic friendly URL . htaccess
I currently have the following rule in . htaccess: RewriteRule ^fale-conosco/?$ view/fale_conosco.php [NC,L] And I would like it to be possible to inform a friendly URL after contacting us/.…
-
0
votes1
answer437
viewsHtaccess - Redirect all requests to a single file every time
I am trying to use a. htaccess file to redirect all requests to a single file, but I am facing some problems. My . htaccess is like this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f…
-
0
votes1
answer303
views -
0
votes2
answers100
viewsInstall Composer in Windows 2012
My operating system has two Apaches running two phps (5 and 7.1 respectively). I am trying to install Composer for PHP7, but it is giving the following message: The PHP exe file you specified Did…
-
0
votes1
answer73
viewsError 503 - Localhost
I just formatted my laptop. I installed the Ubuntu 18.04, Apache, Mysql and PHP. But when entering the page localhost, I get the following error: How can I fix this?…
-
0
votes2
answers99
viewsRemove . php extension from pages , but appears ERROR 404 - PAGE NOT FOUND
I’m looking to remove the . php extension from my web pages. Created a file . htaccess as below and put in the root directory DirectoryIndex index.php RewriteEngine on RewriteCond…
-
0
votes1
answer423
viewsTomcat - RFC 7230 and RFC 3986
I’m having a problem : Error Parsing HTTP request header My apache server Tomcat 8 is rejecting the requests for a system which I did an integration, the error is due to characters that are in the…
-
0
votes0
answers1814
viewsHow to access local network site by typing the virtual address (vhost)?
Talk personal. All right? Come on! I’ve been using Xampp for a long time to develop, host and access my sites locally. In the folder htdocs create my directories, as default (meusite1, meusite2,…
-
0
votes0
answers40
viewsNGINX - ERR_TOO_MANY_REDIRECTS when rewriting htaccess rules
I am trying to convert some htaccess rules to NGINX and am getting ERR_TOO_MANY_REDIRECTS. The htaccess code is this https://pastebin.com/UwGnNybj Options +FollowSymLinks -MultiViews # Secuirty…
-
0
votes0
answers254
viewsXamp [Apache] does not start
I am trying to start apache by xampp, however, I am not succeeding. The Apache_start.bat error is as follows:: httpd.exe: Syntax error on line 176 of D:/xampp/apache/conf/httpd.conf: Cannot load…
-
0
votes1
answer191
viewsmod_rewrite does not work on Ubuntu 16.04
I have a VPS with Ubuntu 16.04 but I’m not able to make it work mod_rewrite. By exhuming the command sudo a2enmod rewrite, I receive the following reply: "Module rewrite already enabled" But when I…
-
0
votes1
answer45
viewsServer Confusion Problem for Windows
I migrated my site to the hostgator server and it is not directed to the public folder. Aguem can tell me why this happens?…