I have somewhat of a staging server on the public internet running copies of the production code for a few websites. I'd really not like it if the staging sites get indexed.
Is there a way I can modify my httpd.conf on the staging server to block search engine crawlers?
Changing the robots.txt wouldn't really work since I use scrip...
I need to configure Tomcat 5.5.27 for disabling weak ciphers, ServerSignature and AuthType but I am unable to find the httpd.conf file. Please let me know about this.
Thanks in advance..
...
In httpd.conf I have:
<Perl>
$MyPackage::foo = { ... };
</Perl>
According to the docs, this should, since it's qualified, persist into my perl scripts, which are run with the modperl handler. And sometimes they do. But then all I need to do is touch MyPackage.pm, and all of the sudden $MyPackage::foo is now undef. Restart the we...
Environment: Apache/2.2.11 (Win32) mod_apreq2-20051231/2.6.2-dev mod_perl/2.0.4-dev Perl/v5.10.0
Situation very similar to what's described in this discussion list post, except for being on win32.
I have this in httpd.conf:
PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload
PerlSetVar ReloadAll Off
PerlSetVar ReloadModules "My...
Hello all,
HELP! I just setup a virtual host for two sites that have a lot of traffic and I think I just messed something up! Here is the end of my httpd.conf:
NameVirtualHost *
<VirtualHost *>
ServerName www.mydomain.com
DocumentRoot /var/www/html
</VirtualHost>
<VirtualHost *>
ServerName www.mydomain2.com
DocumentRoot /var/www/downl...
We need to check the value of UseCanonicalName in httpd.conf in Apache Webserver(any version) from an application using an api. I have googled for it and couldn't find any api related to it. Please help.
TIA
...
Hi. I have a VPS and i'm trying to host several SVN projects. I'd like the URL paths to be like this:
http://svn.domain.com -> Welcome HTML page (at /var/www/svn.domain.com/httpdocs/index.php)
http://svn.domain.com/project1 -> Project 1 SVN Root
http://svn.domain.com/project2 -> Project 2 SVN Root
http://svn.domain.com/project3 -> Proje...
For my web hosting panel, users need to be blocked from accessing files outside their own directory (/var/www/u/s/username). I tried to use this line in httpd.conf to prevent people from going up a directory.
php_admin_value open_basedir .:/usr/lib/php5
But in php.ini, it seems to have no effect. What am I doing wrong?
...
Hi,
I am a newbie to shell scripting and to Linux environment as well.
In my project I am trying to search for following text from the httpd.conf file
<Directory '/somedir/someinnerdir'>
AllowOverride All
</Directory>
and then remove this text and again rewrite the same text.
The reason to do this rewriting is that the script will b...
I've recently installed Apache on my FreeBSD machine. All was working fine; telnet via the local machine and http through Firefox on my XP box (connected via my DSL router) were garnering the "It works!" page. Then, I restarted my BSD machine and now neither telnet (through both su and my normal account) nor Firefox are allowed connectio...
I have several domains that I would like to have wildcard subdomains enabled for through mod_vhost_alias
Included in my httpd.conf I have the following generalized rules:
<VirtualHost [ip here]:80>
ServerName domain1.com
ServerAlias www.domain1.com
DocumentRoot /home/user1/public_html
</VirtualHost>
<VirtualHost [ip her...
Hi,
I have inherited a webserver already serving some websites. I am trying to migrate some of those sites to a new webserver.
One of those websites has a page called:
http://mydomain/ABCDepartment/
This URL also works:
http://mydomain/~joesmith
and the index page for joesmith actually lives in /var/www.../ABCDepartment/people/joes...
I have a server, it's httpd.conf already has some "RedirectMatch permanent" directives in it.
I'm not that familiar with mod_alias, I've only ever used mod_rewrite.
What's the basic difference? I don't see a "L" flag in mod_alias to stop processing rules.
Which one should I use for best practices of redirecting from one subdomain to ...
Can anyone direct me to a good tutorial on how to set up virtual hosts using Apache 2.2? Here's my situation:
I have Apache running on my laptop and I want two websites-- one on port 80 and one on port 8089. I want to access each site from the other computer on my network by entering the computer's IP address, such as http://192.168.1...
How do I install latest versions of PHP as Apache 2 module?
PHPIniDir directive throws error.
And what's more important, there's no php5apache2.dll file or similar in latest distributions of PHP!
Example distr php 5.3
Dmitri.
...
Hey, My host is absolutely terrible. For some odd reason creating a subdomain in cPanel simply does not work, and their support lines are always busy. I thought I could get around this by using .htaccess. I'm sure it's not that hard, but I'm kind of new to mod_rewrite and have had little success searching in the last 5 hours. Heres ...
I have added the following line in my Apache httpd.conf: -
AddOutputFilterByType DEFLATE text/html text/css application/javascript application/x-javascript application/json
I have a html file (test.html) with a script inclusion: -
<script type="text/javascript" src="/test.js"></script>
The problem is, every time I load test.html, t...
I am trying to trying to export a client certificate for use with a web browser.
The goal is to restrict access using the <Location> directive to the admin area. I have seen numerous tutorials on using self signed CAs. How would you do this using a third party?
1) Do I need to include the CA in the client pfx if it is a trusted root ...
I purchased a domain: josecvega.com
Whenever someone tries to access http://www.josecvega.com it forwards them to my web-server.
I have turned ON the mask, so when you initially reach my web-server of IP, 68.42.56.13, it still shows http://www.josecvega.com, but when you click on a link that takes you to another location on my web serv...
Hello guys,
I now have 8GB of ram in my server, so bare that in-mind when making recommendations on how much to up settings.
Basically, Apache won't concurrently load more than one page at a time. What the hell could be causing this? This causes real problems when I execute a page that takes a long time to load, no other pages will loa...