I'm trying to get all cron jobs in the current week (or from monday to sunday) ordered by schedule time.
I'm trying with some elaboration on the output of the command
crontab -l
I appreciate any smarter solution.
I'm trying to get all cron jobs in the current week (or from monday to sunday) ordered by schedule time.
I'm trying with some elaboration on the output of the command
crontab -l
I appreciate any smarter solution.
I'm working on a multiple virtualhost Environment. I've installed PhpMyadmin for Mysql Remote Control.
Environment is configurate as below:
one.domain.com
two.domain.com
onlyphpmyadmin.domain.com
Now, if i accesso to one of the three domains
http://one.domain.com/phpmyadmin/
http://two.domein.com/phpmyadmin/
http://onlyphpmyadmin.domain.com/phpmyadmin/
the result is the same, the access to Phpmyadmin is allowed.
The goal is to obtain a situation like this one below
http://one.domain.com/phpmyadmin/ --> access denied
http://two.domein.com/phpmyadmin/ --> access denied
http://onlyphpmyadmin.domain.com/phpmyadmin/ -->access allowed
whith no hack similar to
<?php
if($_SERVER['HTTP_HOST'] != 'onlyphpmyadmin.domain.com')
die('access denied');
...
?>
on some Phpmyadmin file.
Here my Phpmyadmin configuration file
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
</IfModule>
</Directory>
# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>
I need testing the performance of the reserved area of my website. I want use Siege for this goal.
For accessing to reserved area you must be logged to my site.
How can I send with Siege a Login-Cookie to my web application ?
i'm trying to understanding if is it possibile to avoid request for some embedded objects, loading them directly from cache without asking to web server if the object is valid or not (i don't wont web server response to me with 304 http status code) Is it possible ? Does the expire header works for this way? How?
From my htaccess.
# cache images/pdf docs for 10 days
<FilesMatch "\.(ico|pdf|jpg|jpeg|png|gif|js)$">
Header set Expires "Mon, 31 Dec 2035 12:00:00 gmt"
</FilesMatch>
# cache html/htm/xml/txt diles for 2 days
<FilesMatch "\.(html|htm|xml|txt|xsl)$">
Header set Cache-Control "max-age=7200"
</FilesMatch>
</IfModule>
Similar operation with php header function and also in httpd.conf.
I verify the results in the apache access.log. Every time i refresh the page in the access.log file appear the 304 request. So, i think the browser always make the request.
Some days ago i've installed a nagios' instance on my server, looking if nagios was the right application for my needs.
Sincelery i think Nagios is a powerful and scalable monitoring application, but i'm afraid of nagios can monitoring only one server for each instance, so for monitor two different web server on two different ip i need to install two time nagios on each web server.
I'm searching for an application who can monitor more server in a single instance.
Ex: server nagios on 12.34.45.57 pc. production server number 1 on 45.45.65.76 pc production server number 2 on 65.34.35.76 pc
Does nagios provide situation like the one above? If not, someone knows some sw who provide me to monitor more production server?
Thanks
i'm trying to get the meaning of HostnameLookups in apache configuration file (httpd.conf). I'm also interested about the target of this directive.
Thanks Alessandro