Tag Info

New answers tagged

0

The problem ended up being iptables blocking the connection. This was running on an EC2 instance and when I ran: service iptables stop The connection was successful with the configuration above.


0

Try with the following configuration <VirtualHost *:80> ProxyRequests off ServerName myportal.com <Proxy balancer://mycluster> BalancerMember http://localhost:9000 BalancerMember http://localhost:9001 Order Deny,Allow Deny from none ...


0

Resolved my problem... Apache configuration... WSGIScriptAlias / /var/trac/cgi-bin/trac.wsgi <Directory /var/trac/cgi-bin> AllowOverride None WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all Options ExecCGI </Directory> Compare this config to that posted in the question.


0

If you have mod_rewrite, you can use RewriteRules: RewriteEngine On RewriteCond %{HTTP_HOST} ^inf\.xyz\.city\.eu [NC] RewriteRule (.*) http://sth.city.eu/$1 [R=301,QSA,L]


1

List the certificates inside a keystore to get the alias keytool -list -v -keystore KEYSTORE.jks Convert a JKS file to PKCS12 format (Java 1.6.x and above) keytool -importkeystore -srckeystore KEYSTORE.jks -destkeystore KEYSTORE.p12 \ -srcstoretype JKS -deststoretype PKCS12 -srcstorepass mysecret \ -srcalias myalias -destalias myalias See also: ...


1

I would use a minifying output filter. Something like: https://code.google.com/p/minify/ - this can be integrated in your application. https://developers.google.com/speed/pagespeed/module - to be installed in apache. No application change http://mod-tidy.sourceforge.net/ - to be installed in apache. No application change You can also think to cache parts ...


4

You need to add DNS records for the new vhosts. This is done wherever your authoritative DNS service for this domain is hosted.


0

You can't use wildcard characters in the hosts file, neither on Windows nor in Linux. Since the hosts file is completely under your own control you can trivially create any hostname you need, alternatively run your own DNS server.


0

The short answer: you can't: http://stackoverflow.com/questions/1391808/how-do-i-include-a-php-ini-file-in-another-php-ini-file However, you can put php ini directives into an .htaccess file: http://php.net/manual/en/configuration.changes.php Or use ini_set function within your application itself: http://php.net/manual/en/function.ini-set.php


1

Have you tried looking into your error log for more details? I always run the following command while developing PHP, to be aware of any notices. It may also help you narrow down this issue: tail --follow=name -n 100 /Users/shawn/Documents/work/sites/mindbox/nekst/webapp/app/logs/error_log Ctrl-C when done


0

Within your cgi-bin directives, try adding "ExecCGI" option and adding the cgi-script handler: <Directory /var/trac/cgi-bin> WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all Options ExecCGI SetHandler cgi-script </Directory>


3

My guess is that you have to enable NameVirtualHost for the SSL port. It can be done by editing the file /etc/apache2/ports.conf. There you can see the configuration for port 80: NameVirtualHost *:80 Listen 80 You can also see the IFmodule mod_ssl.c tags. By default there should only be "Listen 443" inside the tags and you just have to add ...


0

One way to do this (assuming the Outlook clients are on domain joined computers) might be to configure the Autodiscover lookup settings with Group Policy. You can disable/exclude the unwanted lookup methods. I would suggest you create an SRV record in your public DNS for autodiscover and use Group Policy to disable all but the SRV lookup method. You could ...


0

I believe you can solve this by setting up 2 vhosts: <VirtualHost *:80> ServerName inf.xyz.city.eu ServerAlias www.inf.xyz.city.eu Redirect / http://sth.city.eu/ </VirtualHost> <VirtualHost *:80> ServerName www.sth.city.eu ServerAlias sth.city.eu ServerAdmin webmaster@localhost [...] </VirtualHost> ...


0

As you identified in your answer, the problem was that you were setting the virtual host to listen to IP 127.0.0.2, which your visitors were not using (they were using the server's public IP). You then changed it to the server's public IP so it now works, but it will stop working the day your IP changes (you migrate to a new server, your host is migrated ...


1

I havent worked with much AWS, but the general way of doing it will be as follows. Let say currently you have example.com hosted in Route53, so Route53 is the authoritative nameserver for your example.com zone. Now if you want a subdomain called client.example.com which again needs to point to the same IP address where example.com. So in that case create ...


4

I found the problem, in case anyone else ends up with a similar scenario: <VirtualHost 127.0.0.2:80> I had to change this to the actual server's IP because, for some reason, Virtualmin didn't pick it up on its own during the setup process


1

You shouldn't really worry about your source code not "looking professional" - very few people view the source. I don't think there's a way to do this via Apache, and if there is a way it's definitely not a good idea (performance-wise and generally). If you want to batch remove the comments from your source files, I would recommend using sed with the ...


0

You are using fcgid module but not using mod_fastcgi, there is no FastCgiExternalServer, directive. but i don't know how to make fcgid and php-fpm together.


1

Because drupal relies heavily on file_exists statements which can not be cached in APC and causes glusterfs to check with the quorum of servers to see if the file exists. So crazy horrible performance.


0

I know this question is old but how about this: Install mod_mono sudo apt-get install libapache2-mod-mono mono-apache-server4 2.Configure mod_mono sudo nano /etc/apache2/mods-available/mod_mono.conf AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx DirectoryIndex index.aspx Include /etc/mono-server4/mono-server4-hosts.conf ...


0

You need to load the mod_ldap. Also make sure your are actually loading those modules (you have a IfDefine in your configuration).


0

You are required to change VirtualHost and conf_files\httpd.conf file. <VirtualHost 127.0.0.1> DocumentRoot "${path}/data/localweb/public_html" ServerName 127.0.0.1 <Directory "${path}/data/localweb/public_html"> Options FollowSymLinks Indexes AllowOverride All Order deny,allow Allow from 127.0.0.1 Deny from all Require ...


0

i found a trick for my problem : Order Allow,Deny Allow from all Deny from 109.xxx.xxx.xxx Deny from 109.xxx.xxx.xxx Deny from 109.xxx.xxx.xxx <IfModule mod_rewrite.c> RewriteEngine On <If "%{REMOTE_ADDR} != '82.xxx.xxx.xxx'"> AuthType Basic AuthName "restricted area" AuthUserFile /var/www/.htpasswd ...


0

1- used port other than 80 in apache, ports.conf and in per host confs in vhosts/domain.com/conf 2- turned on nginx on 80 3- and it works. plesk uses nginx as a proxy to serve webpage from apache which is running on some other port like 8080 and for ssl 8081 or 7081 and so on. Just make sure nginx and apache are not tyring to use same ports it wont work. ...


0

I edited my virtual host file. I added the JkMount inside the virtual host file instead of 000-default.conf and was able to get apache to pass the request to the tomcat application instead of the folder in apaches web directory. I also now have 2 virtual host files, one for the main domain and the other for the domain without www. prefix. Here is what ...


2

Look at your access log (not the error log). With the time and date of the error you should be able to identify the offending request and find out the user agent. In my case, it was a bot: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2)" My Server answers with HTTP 400: Bad Request. Unless I am mistaken, in TLS negotiations, the ...


0

Something like this, where localhost:8080 is where your tomcat server is running. RewriteRule ^/(.*)$ http://localhost:8080/context/$1 [L,P]


0

This rule would work for apache 2.2.3 Header set Set-Cookie HttpOnly;Secure


0

You must have Listen 80 in httpd.conf , you may also have some troubles with virtuals, then the root changes, but with the info you post is hard to say, try to post the result of ps and netstat on ports 7080 and 7081 for further analysis.


0

sudo chown -R myusername:myusername media3 Should do the trick. The -R stands for recursive, and will make your username and group combo (first part is username, second part is group name) own the entire folder and its contents.


0

As EEAA's answer says, you probably used Torrents on that machine. For "my" solution on dealing with this type of "attacks", you can take a look at this answer.


0

Your IP used to host a torrent tracker. Systems out there still think they should be connecting to you, which is why you're seeing this. The curious thing is: why are you replying to them with a 302 HTTP response? You should be sending them a 404. I would recommend just adding a rule in your web server config to match requests like this and reply ...


3

I'm currently investigating the use of IP addresses as a form of access control: for example, only allowing access to an Apache VirtualHost if the request originates from a specific IP address or range Yes, this is a reasonable security measure. It should not be your only security measure, though. To expand on this: Since you mention apache, I ...


1

Well late, but.... You should have a set of custom rules that either preceed or follow the rulesets, generally if you're removing rules or routes, you do it in a file that has a low CRS number. Modifications to the rulesets take place after the CRS files. We use 10 and 65 respectively. What you should be attempting to do is create an exclusion for the ...


0

Just run it again through openssl first generate the key with the passphrase then openssl rsa -in server.key -out server.key


0

You probably installed apc via pecl. If yes, you will have to reinstall APC and xhprof via pecl to get them recompiled for your current PHP version pecl install apc pecl install xhprof


1

The problem here is that somebody has set up a DNS record of their own domain, and pointed it to your IP instead of their own server's IP. There is no possible way to stop somebody from doing this. What you can do to solve the basis of the problem is: You can contact the owners of the domain padstm.com and tell them about the error. If it actually is a ...


0

From nginx's documentation : If the proxy_pass directive is specified with a URI, then when a request is passed to the server, the part of a normalized request URI matching the location is replaced by a URI specified in the directive. So here this means if you hit http://<domain>/cfbrokerlogs/foo then it will be forwarded as ...


-1

LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule rewrite_module modules/mod_rewrite.so RewriteEngine On RewriteRule ^/$ /index.html [L] # RequestHeader set REMOTE_USER %{LA-U:REMOTE_USER}e RewriteCond %{REQUEST_URI} !^/fusioncp ReWriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f RewriteRule ...


3

I'm having the same issue at the moment, having torrent trackers point at my server. I've experimented with iptables for the past couple of days and inspected headers and patterns of the requests and narrowed it down to a couple of iptables rules that filters pretty much all of the recent seemingly malicious traffic from Asia (China,Malaysia,Japan and Hong ...


0

While still not truly sure why so many ENOENT, there was a miss-understanding of the apache config. I made an assumption that mod_wsgi was running as a daemon, when it was running in embedded mode. The apache worker.c section set the number of processes to 8 with an expansion of 25 and that's why there were so many stand-by processes. Each process was ...


0

It was a miss-understanding of the apache config. I made an assumption that mod_wsgi was running as a daemon, when it was running in embedded mode. The apache worker.c section set the number of processes to 8 with an expansion of 25 and that's why there were so many stand-by processes.


2

Start with rules that do what you want and then combine them. In the question you have 3 requirements and rules which only cover two of them - there's one rule missing. A key tip is to write rules that use a positive match (starts with foo) and not a negative match (starts with anything except foo) as otherwise exclusions are required and should you add to ...


2

This is a guess, but I would recommend against mixing NameVirtualHost directives with IP addresses and asterisks. My advice is to try converting everything to asterisks and use ServerName and ServerAlias directives to determine which legacy domain the client is requesting, and based on that, implement the appropriate redirect... in other words: ...


0

The question at Mysterious misdirected Chinese traffic : How can I find out what DNS server an HTTP request used? contains the answer using nginx, blocking requests based on the Host header.


0

I think you are looking at the URL that you type at the browser's address-bar. If that is so, this behavior is just a "cosmetic effect" and it varies from browser to browser. In google-chrome browser the protocol (http://) gets removed but in firefox the protocol is displayed. But when a request is made to the webserver the browser follows the standard GET ...


0

I needed to add: ProxyPreserveHost On This resolved the issue.


1

The attacker is attempting to exploit the Bash Shellshock vulnerability. You can verify whether or not you're vulnerable with a couple simple command-line tests (which by themselves are not harmful), already covered in another SF post: How to test if my server is vulnerable to the ShellShock bug? Your logs show that they returned 200 HTTP status codes, ...


0

You can use command line arguments to make different and use $argv array to access them: <?php if (PHP_SAPI == "cli") { var_dump($argv); }else{ echo 'WebServer'; } ?> And its output: C:\Users\user>E:\xampp\php\php.exe -f E:\Apache\test\s.php 1st 2nd array(3) { [0]=> string(20) "E:\Apache\test\s.php" [1]=> string(3) "1st" ...



Top 50 recent answers are included