Tag Info

New answers tagged

0

Actually Include conf.d/ is loading all files (in alphabetical order i think) irrespective of extension from conf.d/ . I was also facing the same issue after setting ServerSignature Off in security file and the reason was I have backup of original security file inside conf.d/ called security.bak (which contains ServerSignature On). So you have to make sure ...


-1

Create a folder with name as "oldfile.pdf" create an index.php file in it and add this code: <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.example.com/new-page-to-redirect-to.pdf" ); ?>


1

You may not have permissions to access or write to the profile directory you are attempting to retrieve. Although you are (presumably) attempting to set the profile directory via --profile /tmp/slimerjs.gRAJJar6 the SlimerJS documentation indicates this should be -profile (single dash) By default, if you omit the profile option, as it appears you are doing ...


0

If your error documents are to be served by Apache rather than your backend server process (which serves port 32400), you need to protect them from being rewritten; e.g.: RewriteCond !^/error(401|Generic).html before your RewriteRule (you can chain 1 to n conditions which will all need to be met for the following one RewriteRule to be executed).


0

I followed this tutorial at digitalocean.com which allowed me to specify which folder is for what domain or what IP.


1

Try creating a 3-line HTML file, request it from the browser, and check the header. Doing this ensures there are no CGI headers or anything that interferes with your server configuration. <html><head><title>Some Test file</title></head> <body>unicode test äöüÄÖÜß</body> </html> Keep playing with your server ...


0

I don't really see the need to use Apache in this context, if you have access to cron. You don't need to serve pages, apparently you only need to execute code. Why not simply try something like this? #!/usr/bin/env php <?php [Your code here. Perhaps even send e-mail updates including with the status of your script, or update a lightweight database ...


0

httpd2.exe -t Above command will tell you the exact error that you might have in your configuration file with line number. Also try httpd2.exe -k uninstall and then httpd2.exe -k install This fixed the issue in my case


0

Since the page http://www.test.com/hello/jsp/privacy.jsp is in another vhost, this is reverse proxy setup. So specify flag P at the end of rewrite rule. Also you specify ProxyPassReverse directive. RewriteEngine On RewriteRule "^/privacy$" http://www.test.com/hello/jsp/privacy.jsp [NC,L,P] ProxyPassReverse "/privacy" ...


0

Are you actually using IIS at all..? If not, it may be worth unistalling thereby releasing port 80 for Apache instead and avoiding having to modify the httpd.conf file too much. IIS is integrated in Windows 8.1, but requires to be added as optional Windows component, unless you use a customised installation media.


10

Use SetGID permissions on the web root directory, and propagate them to the children. When you apply SetGID on a directory, all new items in that directory will be created with the same group their parent has, regardless of the users default group membership. To apply SetGID to a filesystem object, use chmod with a 2 in front of the permission code. (eg: ...


1

Finally, we tracked the issue down to the firewall. I was able to connect via local host command line but not from remote machines. For some reason, disabling the ALLOW 443 OUT rule managed to fix the issue.


0

Ah, turns out I didn't have logging set up in apache. I added this to mywebsite.config: LogLevel info ErrorLog "/var/log/apache2/error.log" CustomLog "/var/log/apache2/access.log" combined


1

By default, www-data is a user, same as anyone who isn't root. As you probably know, only root can read the httpd access logs, meaning that www-data will get access denied. You could either use a cronjob to copy the log to /var/www/html or (not recommended) run httpd as root.


0

Yes, you can daisy chain webservers. This is, effectively, what a proxy server is. (Actually a reverse proxy - and thats what you would want to google for more research). No, server B does not need to be SSL enabled. You can use mod_proxy (apache) or equivalent to strip the SSL. This is very, very common in load balancing/sharing environments. (I ...


1

Apache will search recursively up the tree for .htaccess files, on every access, which is why .htaccess files (i.e. anything besides AllowOverride none) is a bad idea if you want high performance. If you can, put the directives in the config itself and turn off AllowOverride. Perhaps Adding a <Directory> segment with AllowOverride none for the parent ...


0

Run these following commands in SSH # echo "/usr/local/lib" >> /etc/ld.so.conf # echo "/usr/lib" >> /etc/ld.so.conf # ldconfig Then, try to configure again,


0

You need to open 80 port in your router NAT to the computer that is hosting the app.


0

The paragraph stating Some early versions of Java 7 SSL by @dave_thompson_085 led me to the final solution. Problem and solution are both well described on the Apache website. There is a block to be appended to the PEM file which forces certain TLS v1.0 session parameters needed by Java SE 7.


0

Did you enabled "NameVirtualHost" directive? You should uncomment the following in your httpd.conf: NameVirtualHost *:80 This directive is needed to work with name-based virtual hosts.


0

My Problem Was My ISP. It Blocked My Port 80. Solved With A Simple Port Forwarding


1

Looks like your file has to end with .conf but in your case ends with .nl. Renaming it to mysite.nl.conf should fix it.


0

I suspect its hard drive fragmentation causing your issues. Run a chkdsk on the drive before you defrag it, sometimes there is file system corruption when drives get high fragmentation, you need to sort that out Before you defrag the drive.


3

That is because both IIS and WAMP try to set up a server listening on port 80. Only one application can use a local port at a time. You have two options: Enable WAMP server to set up a server socket listening on port 80 by shutting down IIS service; Change the listening port to another one, for example port 8080. You can do that by editing the httpd.conf ...


0

The answer above is correct, but I have smth to add: ProxyPass /directory/subdir/ http://localhost:8123/ ProxyPassReverse /directory/subdir/ http://localhost:8123/ No need to add RewriteEngine On here. /usr/local/psa/admin/bin/httpdmng --reconfigure-domain <YOUR_DOMAIN> No need to restart httpd also.



Top 50 recent answers are included