New answers tagged

1

OK. I found an answer. I read from the apache doc: https://wiki.apache.org/httpd/DirectoryListings If no file from the DirectoryIndex directive can be located in the directory, then mod_autoindex can generate a listing of the directory contents. This is turned on and off using the Options directive. So I uncomment the mod_autoindex load module line in ...


1

What you are referring to is a "front controller". The usual first step is to make sure that the resource being requested is not a physical file on the filesystem before rewriting to your front controller (ie. your Perl script). For example, using mod_rewrite in your root .htaccess file: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...


0

Just implemented this for my site. Works like a charm! Added to the top of my .htaccess file. Redirects all instances of people typing www or not www, http or https. # BEGIN HTTPS Redirect RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] # END HTTPS Redirect


1

RewriteRule ^$ /temp [L] If you have a physical directory temp in the root of your filesystem... and since you have omitted the slash from the end of the RewriteRule substitution then mod_dir will attempt to "fix" the request by appending a slash. It does this by issueing a 301 redirect. (You are then presumably relying on the DirectoryIndex to serve the ...


0

Best is not to touch these things and leave them as default. That means according to includes/DefaultSettings.php $wgTmpDirectory = false;


0

The phishing warning you are getting is populated by Google. Not only does Google embed this warning in the Chrome browser but it is also embedded into the search results for Google Search. This is done by Google based on automatic assessments which can sometimes be wrong. If you feel that your site has been incorrectly classified as a phishing site you can ...


0

The issue here will be the ServerAlias directive. Duplicating vhost files from other sites can be an issue as you don't need to have all those directives. The bare bones vhost file you need is... <VirtualHost xx.xxx.xxx:80> ServerName test.example.com DocumentRoot /home/example/public_html/test </VirtualHost> Everything else in the ...


3

RewriteCond %{REQUEST_URI} !^/Joomla3 RewriteRule ^(.*)$ Joomla3/$1 [L] What these directives do is... if the requested URL does not start "/Joomla3" then internally rewrite the request to the "Joomla3" folder. What you need to do is add another condition to state that... if the requested URL does not start "/Joomla3" and it does not start "/owncloud" ...


1

This is possible but be aware that Tomcat and Apache would have to be accessed over different port so if someone wanted to access the Tomcat app they would have to access it using the Tomcat port which is port 8080 by default. If you don't want to have the port at the end of the domain (as http is port 80) then you would need to run two separate servers one ...


1

From http://httpd.apache.org/docs/2.0/mod/core.html#timeout The Apache timeout directive defines the amount of time Apache will wait to receive a get request, or the amount of time between receipt of the TCP packets on PUT and POST requests, the time between receipt of ACK's on the transmission of TCP packets in response. Put another way using your test ...


0

Doing it through a .htaccess file while theoretically possible can cause issues and so many shared web hosts prevent that directive in .htaccess. However depending on the hosting panel they are using you may be able to specify the PHP version to use using the hosting panel itself. Both cPanel and Plesk have the ability to specify the PHP version to be used ...


0

Okay the issue with your configuration here is that the host field should be empty and the points to field should have the IP address in it. An empty host field indicates the domain apex. Put another way your configuration should be... IN A 54.246.128.54 IN A 54.246.128.245 www IN CNAME target-app.hotelrunner....


0

As you state that the SEO friendly URL's are working fine then that means that mmod_rewrite is working fine. For some reason your Apache server is doing the logging prior to the rewrite rules being executed. Only time I have seen this before was with a glitch in Apache and the only fix I was able to find for it was to reinstall Apache from scratch.


0

You need to remove the commented out server alias declaration. By commenting it out the only domain string that would use this vhost file is domain.com. You will probably find that the domain that the www domain is being redirected to is in the default configuration for the server where all connections not specifically handled by vhost files are directed to.


0

Based on both your question as well as your follow up comments it would appear to me that the issue is to do with your rewrite rules not taking effect. You mention that the long string of numbers is a base64 encoded string of a large range of parameters, from this statement I make the assumption that the base 64 encoded string is not in fact a folder you are ...


1

An explanation for the SELinux portion. I know next to nothing about mediawiki but use SELinux daily so I figured I would help explain what you are setting. I got the definitions from various man pages. httpd_can_network_connect_db (HTTPD Service) Allow HTTPD scripts and modules to network connect to databases. httpd_can_network_connect (HTTPD Service) ...


0

What you are searching for is known as a CNAME record. With Windows Azure you will be given a public URL for the service usually under a domain associated with Azure. From there you change the current A record to a CNAME record with the same sub domain name and simply add the public domain for the Azure service. What will happen then is when a user tries to ...


1

I would NOT do ssl unless it is a SHA2 official CERT and unless you have control of httaccess folder redirections. Run a Google search for: "FORCING ssl via htaccess" (Note that Google Chrome may show you an error on a CERT if it is a SHA1).


1

The only memory limitations currently supported are the ones that you have asked about. There is no way currently in cPanel to apply a memory limit on an account basis, only on a per script or per process basis. The issue you would encounter is how to apply a memory limit on a per account basis as each account does not spawn its own Apache process and if it ...


1

I suggest you add [R=301,L] after your RewriteRule in your .htaccess to redirect the visitor, like so: RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Currently your telling the browser "There is a https version I want you to visit". The R=301 adds "I want you to go there via a 301 reload". It's the reload part you don't have in place ...


7

The following picks up on a fresh working LAMP installation under Red Hat 7 or clone (CentOS 7, Scientific Linux 7, Orcale 7, etc). Set Selinux to permissive for the installation. setenforce 0 First get the Mediawiki version you want from https://releases.wikimedia.org/mediawiki/ , at time of writing latest is https://releases.wikimedia.org/mediawiki/1.27/...


1

Ok, I had to add ServerAlias for each server, didn't think of it because before I had a mod_rewrite rule to remove the www. prefix... <VirtualHost 127.0.0.1:8080> DocumentRoot /var/www/html/afarber.de ServerName afarber.de ServerAlias *.afarber.de ErrorLog logs/afarber.de/error_log CustomLog logs/afarber.de/access_log common </...



Top 50 recent answers are included