302 server status code to 301/404 server status code
Hello,
Sorry for my english.
I have an arcade site.
mydomain.com/game.html If database has the game name is good.
mydomain.com/fd43f54.html if database has not the game name redirect to mydomain.com by 302 error code.
if database has not the game name i want a 301/404 error code and no redirect.
I attached file.php to this post. Thank you very much for help.
Hi All,
Thanks in Advance.
My requirement is there are some data files to be updated(some times new files get created) regularly in server A, these files are to be updated to the server B(backup server) by using SCP, I have to write a script for this purpose, before copying the files to server... (3 Replies)
I like to know how to monitor the UNIX CPU/memory status over time. I need to data to do some graphical representation of the server load. I sort of need to keep track of the vmstat but i dont know how. I hope someone would kindly help me out. thanks. (1 Reply)
Hi ,
I want to connect srver to pertuculat mode(i.e.srvrmanger)and after that I want to verify status of perticular component(i.e.CommOutboundMgr)
For that I have created following script bout after 3rd line it is not executing 4th linei.e. list comp CommOutboundMgr.
cd... (2 Replies)
Hi All,
I would like to connect from "Instance A" to "Instance B" with the help of sftp.
Where as Instance B is having clustered servers ( 2 servers pointing same instance ).
Now, my question is before connecting to "Instance B" from "Instance A" how do know whether server is running or not.... (3 Replies)
Hi All,
Using Wget I'm able to get the status of the server.....only when the server is completely down or up....
but problem here in script is Suppose if the server got hang I mean to say that if the server is taking long time to login, for example normally the server takes 3 seconds to login... (3 Replies)
Hey!
In case members cannot login to the forums due to our data center going off line, please check our twitter feed for updates
@unixlinux
Looks like the Houston Level3 data center went offline briefly today (for about 15 minutes).
HOLD ON HOUSTON!
If you notice any issues and... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT DEBIAN
plack::middleware::errordocument
Plack::Middleware::ErrorDocument(3pm) User Contributed Perl Documentation Plack::Middleware::ErrorDocument(3pm)NAME
Plack::Middleware::ErrorDocument - Set Error Document based on HTTP status code
SYNOPSIS
# in app.psgi
use Plack::Builder;
builder {
enable "Plack::Middleware::ErrorDocument",
500 => '/uri/errors/500.html', 404 => '/uri/errors/404.html',
subrequest => 1;
$app;
};
DESCRIPTION
Plack::Middleware::ErrorDocument allows you to customize error screen by setting paths (file system path or URI path) of error pages per
status code.
CONFIGURATIONS
subrequest
A boolean flag to serve error pages using a new GET sub request. Defaults to false, which means it serves error pages using file
system path.
builder {
enable "Plack::Middleware::ErrorDocument",
502 => '/home/www/htdocs/errors/maint.html';
enable "Plack::Middleware::ErrorDocument",
404 => '/static/404.html', 403 => '/static/403.html', subrequest => 1;
$app;
};
This configuration serves 502 error pages from file system directly assuming that's when you probably maintain database etc. but serves
404 and 403 pages using a sub request so your application can do some logic there like logging or doing suggestions.
When using a subrequest, the subrequest should return a regular '200' response.
AUTHOR
Tatsuhiko Miyagawa
SEE ALSO perl v5.14.2 2012-03-15 Plack::Middleware::ErrorDocument(3pm)