Tag Info

New answers tagged

0

Enable and configure mod_remoteip. You proxy would set the original remote IP address in the header like X-Forwarded-For in HTTP requests. Pass it to RemoteIpHeader directive placed outside <Directory>. If mod_remoteip works correctly, original remote addresses passed by the proxy can be seen with %a in LogFormat. You should first check this. On ...


1

In your ispconfig.vhost file, see this block: <FilesMatch "\.ph(p3?|tml)$"> SetHandler None </FilesMatch> It tells to not associate any handler for php files. A little after, you have another block: <IfModule mod_fcgid.c> ... <FilesMatch "\.php$"> SetHandler fcgid-script </FilesMatch> ... </IfModule> This ...


0

You can also use the auth_pam module. It has for example been included in the last two stable Debian releases. It supports LDAP authentication (and a lot more) through PAM.


4

chmod u+r doesn't do what you apparently think it does; what it actually does is make the file readable by its owner. Which, I'm going to guess, it already was. chmod o+r (make file readable by "others", i.e., not owner/group) would probably work, but security argues against this. Pick one: ls -l /var/log/apache2/error.log ... on my (Debian) system, its ...


2

Run sudo visudo and add this line: Defaults timestamp_timeout=-1 -1 = never timeout the password Also see man 5 sudoers Though the above solution attracts security concerns. Please follow this link to set up sudo to run without password for specific commands.


4

I can think of many solutions for this specific problem : (A) Configure sudo access such that your username does not require password for tail command (or for all commands, if you so require) Refer sudo and sudoers Documentation for this. (B) Configure sudo access with negative timeout. Default timeout is 5 minutes , after that you will have to reenter the ...


2

More information on certificates with and without the www domain can be found here. This post has the same subject as your question and basically states that there is no work-around, other than buying a new certificate


4

A wildcard matches a single left-most label. That is *.example.com matches www.example.com but not example.com or sub.foo.example.com. This means you either need to get a certificate which includes *.example.com and example.com as subject alternative names or if you just need www and the naked domain name then you can can get a cheaper certificate which ...


5

This is not how certificates work. You can't generate a private key for an existing SSL certificate. First you generate the key pair (private + public), then you generate a CSR (containing your public key) that you forward to the CA (Comodo in this case) which will provide you with the certificate to install on your server. Perhaps the private key is ...


1

You can try this in .htaccess or apache config. AddType text/plain .log


0

Type sudo apt-get purge apache2* This will get rid of all packages starting with apache2, then Type sudo apt-get autoremove It'll uninstall the packages that were installed by other packages and no longer needed. Then install apache. Hope this works.


1

As you specifically mentioned htpasswd, here is a simple perl script that you can use to replace it (from here): #!/usr/bin/perl use strict; my $passWord=$ARGV[0]; print crypt($passWord,$passWord)."\n"; Just place the above code in a new script, say htpasswd.pl, make it executable (chmod 755 htpasswd.pl) and run it as follows: ./htpasswd.pl password ...


0

if you mean /usr/local/WebFiles/Html by the publication folder in that case I'd say yes and the answer of the question two : Create a group where you add tomcat and apache and grant this new group to read and execute the publication folder.


0

You should install mod_php5: pkg install mod_php5


-1

* wget http://127.0.0.1/ -O /dev/null * represents connection to local server without handling IPv4 or IPv6, if you change localhost (or 127.0.0.1) to real IPv4 IP address of this server, you cant wget anything because denied connection. Try to describe you IP in config files: NameVirtualHost :80 Listen :80


0

For security' reasons, you should be create an alias in /var/www to /var/www/html but up to you. (I wouldn't do that)


0

They changed the location to /var/www/html in apache2.4 so that bit of text in the index.html is just letting you know of the change. You don't need to change the document root. If you want to make a new virtual host just add a new_website.conf to the /etc/apache/sites-available and specify whatever location you want (to create the symlink in the ...


0

this File httpd.conf is still exits in RedHat , Centos , Ferodra however Now This file does not exist in ubuntu. apache2.conf: the main Apache2 configuration file. Contains settings that are global to Apache2.


2

Per https://help.ubuntu.com/lts/serverguide/httpd.html all configuration options have all been moved to subdirectories. httpd.conf: historically the main Apache2 configuration file, named after the httpd daemon. Now the file does not exist. In older versions of Ubuntu the file might be present, but empty, as all configuration options have been moved to ...


0

I had to add this to my /etc/httpd/conf/httpd.conf file: <Directory "/usr/share/phpmyadmin"> AllowOverride None Options None Require all granted </Directory> I have no idea what the security implications are to this ^. Then restart the apache service: sudo systemctl restart httpd.service I have also read that selenium can cause ...


1

Yes this is possible, thanks to open source code. :) The easiest way is to edit the Apache2 source file for the mod_autoindex module that creates the html that is sent to the client. Here is the file you would need to edit 1: http://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/modules/generators/mod_autoindex.c There are 7 places in that file where ...


1

I have not used PHP, but I've used FastCGI to accomplish a similar thing with other lanaguages, and that's the approach I'd recommend, especially since php 5.3.3 and newer has an implementation built in, PHP-FPM. You can find documentation on how to use this on the official PHP website: FastCGI Process Manager (FPM). This has many features, but the most ...


-1

You can't. Apache runs under a low-privilege account — typically called apache or httpd — on purpose. The only way Apache could be configured as you propose is if it ran as root, which would make Apache a massive security risk. You will have to use the OS's suid bit bit feature to get the effect you want. You don't say which OS you're using; it matters. ...


0

-That is if you are using IP addresses will use: HostnameLookups Off ...or if you use a domain name you will use: HostnameLookups On # Here below some sample of the definition to use... Global configuration ServerRoot "/etc/apache2" # Here the definition that's make this confusion... HostnameLookups Off # if ...



Top 50 recent answers are included