New answers tagged

0

Have you tried without the ./ ? If removing that doesn't work, how about putting the .htaccess file in the user folder, and then just use <Files config.php>? That is probably more efficient anyway. Other things you can try can be found in the docs.


0

Usually the execute permission for one path is not set, like it was in this question. The easiest way to solve this is the following command: chmod a+rX -R /var/www But on using CentOS7 or RHEL7 you might encounter problems with SELinux. If file permission are right and you still get the error, look at the following log: tail -f /var/log/audit/audit.log ...


1

No need to manually mount the folder. Tick the auto mount option in the shared folder settings. My shared folder is named as www. So the folder will be created in as media/sf_www in the VM. Replace <Directory /var/www> ... </Directory> tag with the following code in the /etc/apache2/apache2.conf file. <Directory /media/sf_www> Options ...


0

Wildcard include your site configuration files: Include path/to/site/confs/*httpd.conf Organize your site conf files so they are loaded in an expected order. Example... 01-httpd.conf 02-site1-httpd.conf 03-site2-httpd.conf etc... Apache will read these in order. Then create one that will always load last to catch any unmatched virtual hosts and ...


0

After scouring the net using the correct search terms, I found thread after thread of people having issues with this router/modem. There were different ways people managed to get port forwarding to work correctly although most did not. The solution that worked for me was to open the advanced tab navigate to setup > WAN setup and check Respond to Ping on ...


0

The modem/router in question does not support NAT loopback. A way to get around this would be to point the device IP to the domain via the host file although this is not ideal. Example: 10.0.0.92 its.dirtrif.com Better off purchasing my own router/modem and get rid of the Comcast provided one, plus save 10$ on my bill every month. After reading a bit ...


0

Don't use StartCom. Instead, use Let's Encrypt, with the --apache autoconfig option. It will ask you everything user-friendly and you can fully customize your Apache config after setting up the Let's Encrypt SSL. So, the problem is solved by deleting the StartCom SSL and auto-configuring apache with Let's Encrypt. I don't really know what's the initial ...


0

This took a morning to work out by trial and error but on Red hat 6 (ish) this works, note I've had to override an existing .htaccess file that I can't change. This will point to offline.html in your root directory ServerName 127.0.0.1 Listen 80 TypesConfig /etc/mime.types LoadModule dir_module modules/mod_dir.so LoadModule mime_module modules/mod_mime.so ...


0

Not Linux command, but useful (PHP script): <?php phpinfo(INFO_MODULES); ?>


0

The error code 0x80240017 means WU_E_NOT_APPLICABLE - Operation was not performed because there are no applicable updates. This means the MSU can't be installed because: requirements to install the update are missing update is already installed update is superseded (already replaced with newer version) Look if you ave the update KB2999226 (Universal C ...


0

It looks like this is a guide to running multiple wiki's out of one directory (folder). It would appear that you can use mediawiki to accomplish this by having multiple LocalSettings_x.php files, defined in a main LocalSettings.php file. So, you would have a LocalSettings.php file that stores global settings and also points to LocalSettings_wiki1.php and ...


-1

One part of the problem could be this, permanent redirect are cached by the browsers (and not, private mode doesn't help in the case of Google Chrome). Another thing that I've discovered (having the advantage of knowing both the original URL and the new one) is that on Firefox (on private mode) the old URL is no longer redirected (badly) and it just throws ...


0

According to your Dockerfile you include your HTML files when when creating your docker image: ADD src /var/www So could you explain why you need to edit an .htaccess file after running your image? If you need a different .htaccess file on different hosts, the "docker" way would be to use a data volume when running your container: docker run -v ...


0

The first step will be to restore the correct user IP in your log files so they show your user's IP Address instead of CloudFlare. In order to do this you can install Mod_CloudFlare. After you've done this; you can then install Fail2Ban. Fail2Ban can then be configured to Rate Limit requests from IP Addresses of your choice. Fail2Ban will then watch your ...


0

For everyone looking for a solution: Remove the backslash at the end of CATALINA_HOME=C:\Programs\apache-tomcat-6.0.36\ to CATALINA_HOME=C:\Programs\apache-tomcat-6.0.36 Worked for me


0

The point 6 explains that you have two options based in the url that you want to use. The two options, translated into url's, are: wiki1.yourdomain.com wiki2.yourdomain.com yourdomain.com/wiki1 yourdomain.com/wiki2 Wikis are all the wikis that you want to host with only one installation. In layman's terms, if you follow the official guide you will ...


0

From the sounds of it, you are not running it through the web, you are running it from the command line - in that case, the script will run as the user who is running it (indeed, it does not even involve apache here) - thus if you are root when you run it, it will run as root. If you want to run the script as apache, try something like sudo -u apache ...


0

try add that to httpd.conf AddType image/x-portable-graymap .pgm


2

uWSGI uses the uwsgi protocol (which is somehow related to the WSGI interface, but I'm not sure how), while FastCGI & fgcid use the FastCGI protocol. Traditional "CGI" didn't have much of a protocol at all – the server would just spawn (fork+exec) the CGI script with HTTP request headers in environment variables (e.g. $HTTP_REFERER), and the script ...


4

As specified in the HTTP standard, you need to send two CRLF's, so after the GET /test.txt HTTP/1.0 you need to press the enter key twice.


0

I found the solution. It is because shell_exec always gets an english output, even if the OS is set to german, if you execute shell_exec("/sbin/ifconfig") then you will always get e.g. inet addr instead of inet Adresse in the output. I also forgot to change the user and group of my file to www-data with chownand to allow execution of the script with chmod, ...


0

Your grep pattern doesn't seem to match the output of ifconfig and therefore grep is producing no output, try: $ip = trim(shell_exec("/sbin/ifconfig eth0 | grep -i 'inet Adresse:' | awk '{ print $2 }'"));


0

virtual hosts map domains, sub-domains, and IP addresses to a section of configuration. that's not going to help you here. I feel like you are confusing the word domain and subdomain, which refers to any one of the following forms .com Google.com www.google.com a1.www.google.com what you are looking for is hosting your application as a path ...


0

I have run Gitlabs before but never with Apache, however a quick Google search revealed a dearth of information. In general it looks like you need to install Gitlabs and Apache, edit the Gitlabs config, add the Apache user to the Gitlabs group, create a VirtualHosts file so that Apache will host Gitlabs instead of nginx, enable the new VirtualHosts file, ...



Top 50 recent answers are included