i am pretty new to dedicated hosting and aws cloud. i was able to setup my instance with a lamp stack and installed phpmyadmin, moved it away from the 'www' directory and gave it an alias in my httpd.conf
but i've read that disabling all together and accessing and managing my dB through a client such as MySQL Workbench would greatly improve security.
question: how would i remove / disable (which ever is best) phpmyadmin without destroying my sql dB's that i have created? the site is live and i am nervous about any disruption.
When I run configtest on our Apache server, I get the following:
`Syntax error on line 1023 of /www/conf/httpd.conf:
Invalid command 'SSLEnable', perhaps mis-spelled or defined by a module not included in the server configuration`
I know this part of the configuration works. Is there a trick to make configtest mod_ssl aware?
EDIT: RHEL4, nonstandard Apache 1.3 install? I just wanted to fix the ssl access log format to where Webalizer can give a clearer picture on who's still using this thing before we take the thing down. Since it's going away, no point upgrading apache just for this side project.
I have a mod_rewrite line that works under Apache 2.2, but not under Apache 1.3:
RewriteRule ^(?!index.php)(?!skin/)(?!js/)(.+) /index.php?file=$1 [NC,L]
If I lose the negative look-ahead components between the brackets, I lose the 500 status code. GoDaddy won't upgrade the httpd for this client's package (sigh), so has anyone got a solution that could work in 1.3 (and isn't too messy :P)? Or even better can anyone explain what might be going on here? I remain curious only because I can't find any information on the Perl regex engine used in 1.3 not supporting negative look-ahead...
What configuration is required to make Apache serve all files as text files in the browser window? For example if I have a file program.c
, how can I make Apache serve it as plain text in the browser window rather than as a download?
I'm using Apache 1.3.
I have a group of linux apache 1.3 servers behind a load balancer, and I want to be able to, at a glance, determine which server I'm hitting. The load balancer is severely limited in its monitoring capabilities, so what I'd like to do is configure apache to send an additional header indicating the machine's hostname.
I know I could just hard-code a header into the httpd.conf with the hostname:
Header set X-Which-Host-Am-I 'host1'
However, all the servers in question are mirrored with rsync, including the configs, so hard-coding the hostnames is out. Is there a way I can call the hostname
command and dump it into a header?
Clarification: Since multiple virtual hosts live on these servers, I want the physical machine's hostname, not the domain name in the request.