FAQ Database Discussion Community


Removing index.php from URL in CodeIgniter on Mandriva

php,apache,.htaccess,codeigniter,httpd.conf
I developed a project which uses CodeIgniter on Windows OS. The project works fine on XAMPP (Windows) and Linux hosting server (updated .htaccess on server to work). I want to use Open Mandriva for development purpose. If I run the controller using index.php, it works. I tried many .htaccess rules...

Apache 2.4 mod_authz - RequireAny/All and Require valid-user

apache,.htaccess,authentication,httpd.conf
I have problem figuring out how create right configuration for apache 2.4 with mod_authz_core specifically with combination of RequireAny/All and Require valid-user. I need this configuration: web has blocked access from specified countries, but I have list of specific ip address, that have to be whitelisted and have access to...

VirtualDocumentRoot handling non-existent folders

apache,.htaccess,virtualhost,httpd.conf,vhosts
Using Apache, I have set up the VirtualDocumentRoot and it works this way: <VirtualHost *:80> UseCanonicalName Off ServerName app.example.com ServerAlias *.example.com VirtualDocumentRoot "/home/domains/example.com/%1" <Directory "/home/domains/example.com/*"> Options Indexes FollowSymLinks AllowOverride All Order Allow,Deny Allow from all </Directory> </VirtualHost> If I put the URL of http://mail.example.com, the DocRoot becomes /home/domains/example.com/mail, if it...

Unable to manually configure apache httpd 2.4.12 on ubuntu 13.10

apache,load-balancing,httpd.conf,ubuntu-13.10
I need to manually install apache httpd 2.4.12 on ubuntu 13.10. For some reasons I cannot use apt-get install. Having gone through the instructions provided for httpd installation, I execute the following commands in order Unzip the installation that was downloaded Navigate to the folder where the installation is present...

Configure httpd.conf to add new site on Apache Red Hat Linux

linux,apache,httpd.conf
I have linux server (Red Hat Enterprise Linux Server release 5.3 (Tikanga)) with apache installed. It is already used for browsing some documents. Now I would like to add a new Directory (with a html page), so whenever the directory is browsed it can display the html page. But I...

OpenShift PHP with .html Extension

php,apache,openshift,httpd.conf,addhandler
As we know, it is easy to get Apache to handle .html pages as PHP pages by adding the following line to http.conf: AddHandler application/x-httpd-php .php .html How can this be done in OpenShift? How can I edit http.conf in OpenShift? Or is there another way?...

Worried about potential performance issue with httpd.conf with thousands of 301 redirects

apache,.htaccess,cpanel,httpd.conf
I've been doing further research about permanent 301 re-directs. I'm doing a site re-design and 4,000 pages are changing their URLs so I have a few thousand 301 re-direct statements where the URLs are changing so much that I can't do regular expressions. I've been researching about the performance differences...

Point domain to wordpress folder in ec2 amazon centos

wordpress,amazon-web-services,centos,httpd.conf
I have my site hosted at http://52.68.178.242/ I have registered domain gabifrc.org from aws I'm using httpd24 on crentos I have set following configurations in /etc/httpd/conf/httpd.conf file. It seems to change the DocumentRoot but doamin is not in use. How can i point it to the doamin. <VirtualHost *:80> ServerAdmin...

Issue with Mod_Rewrite after moving projects out of “www” "folder from WampServer

php,apache,mod-rewrite,httpd.conf
I've been trying for a few hours and cannot get around to why an out-of-box WordPress instance with Permalinks enabled works when it is in "C:\wamp\www" whereas the same duplicate will receive a "404 Not Found" when place in a folder outside of "www" folder, say "C:\projects"? I believe the...

Apache2 RewriteEngine causing 403 Error

apache,mod-rewrite,apache2,httpd.conf,http-status-code-403
I used the following config on apache2 conf file " RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.html [NC,L] " so that I would be able to remove the ".html" suffix after my links. This worked fine but when I enter the domain by itself without extensions it will give...

Apache running on which Port

python,apache,python-2.7,mod-wsgi,httpd.conf
Is there a way to programatically find out which PORT Apache is running on from within a Python program (WEB Application using mod_wsgi) I can always do a grep on httpd.conf but wanted to know if there is some other standard programatic way of achieving this....

Serving files from multiple root directories in apache

apache,mod-rewrite,httpd.conf
I want to create a setup in apache where my media files are split from my code (for easy project management). The idea I created is to have a root directory (/home/villermen/httpd/root) which contains all the code (php files, css files etc.) and a media directory (/home/villermen/httpd/media) which contains all...

sudo apachectl restart Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details [closed]

linux,apache,httpd.conf,centos7
Before my question gets torn apart I have already checked to see if SELinux was disabled and it is and sudo apachectl restart is not working. I ran into a problem let me start by saying I am a noob, When I ran "sudo apachectl restart" it gave me an...

Htaccess - Combining underscore to hyphen and uppercase to lowercase 301 redirect

apache,.htaccess,redirect,httpd.conf
At the moment I'm using an underscore the hyphen 301 on my site, this is working well but I also want to convert all links to lowercase and add an uppercase to lower case rewrite. I can do this but with the current method it would do the following which...

Apache ignoring httpd.conf assigned path

apache,cgi,httpd.conf
In trying to resolve a path error on my cgi-bin, I've discovered that Apache is looking for it in the wrong place. The error log shows: script not found or unable to stat: /Library/Server/Web/Data/CGI-Executables But my httpd.conf file has: ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1" <Directory "/Library/WebServer/CGI-Executables"> AllowOverride None Options None Require all...