Regex to rewrite URL to another URL based on HTTP_HOST?
I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST
The call goes out to
The ID in the middle is always random due to the cookie.
I want for that specific HTTP_HOST when it fetches the URL "http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena" , I want it to get
Instead.
Is there a way I can do this with mod_rewrite, or regex?
Hello.
I have scenario where a Client send request to Server1.
Server1 send request to Server2.
Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client.
Trying to use APACHE proxy...
Anyone can help?
What to download / configure / ...?
Thank you for your help. (1 Reply)
Hello.
I have scenario where a Client send request to Server1.
Server1 send request to Server2.
Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client.
Trying to use APACHE proxy...
Anyone can help?
What to download / configure / ...?
Thank you for your... (2 Replies)
I am trying to remove the context name from the url of my server.
Current URL - http://www.domainname.com/MyApp/
What I need to make is to make it avaialble at -
http://www.domainname.com/
I have already tried couple of things like below -
RewriteEngine On
RewriteCond... (0 Replies)
Here is what I have so far:
find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}'
Here is an example content of a PHP or HTM(HTML) file:
<iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Hi,
Googled around but I couldn't find anything similar. I'm looking to do the following in apache..
if a user comes into the following URL.
http://www.example.com/some/thing.cid?wholebunch_of_stuff_here
keep the URL exactly as is BUT add &something at the very end of it.
thanks in... (1 Reply)
Hello,
I have added following rewrite cond and rewrite rules but it does not work.
RewriteCond %{HTTP_REFERER} ^http://192\.168\.1\.150/categories/.*$
RewriteRule ^(.*)$ http://www.blahblah.com/
When I hit url : http://192.168.1.150/categories/881-Goes?page=7 in my browser - it... (2 Replies)
Hello,
Am very new to perl , please help me here !!
I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file.
below is the script which i have written so far ,
#!/usr/bin/perl
use LWP::UserAgent;
use... (2 Replies)
Hi guys,
What is the regex to check for only valid URL from a file using grep? (2 Replies)
Discussion started by: Meeran Rizvi
2 Replies
LEARN ABOUT DEBIAN
relaytest
relaytest(1) General Commands Manual relaytest(1)NAME
relaytest - attempt to use SMTP to relay to a DSBL-compliant host
SYNOPSIS
relaytest [-v] <ip address[:port]>
DESCRIPTION
relaytest attempts to connect to the specified <ip address> on the specified port (default is port 25) and uses a variety of tests to
attempt to relay through the host.
In the tests below, source.com is sender_domain from dsbl.conf(5) and sender is sender_user.
Non-domain-specific tests:
MAIL FROM:<sender@source.com>
RCPT TO:<listme@dsbl.org>
MAIL FROM:<sender@source.com>
RCPT TO:<"listme@dsbl.org">
MAIL FROM:<sender@source.com>
RCPT TO:listme@dsbl.org
MAIL FROM:<sender@source.com>
RCPT TO:<dsbl.org!listme>
MAIL FROM:<nobody>
RCPT TO:<listme@dsbl.org>
MAIL FROM:<nobody>
RCPT TO:<"listme@dsbl.org">
MAIL FROM:<nobody>
RCPT TO:listme@dsbl.org
MAIL FROM:<nobody>
RCPT TO:<dsbl.org!listme>
MAIL FROM:<source.com!sender>
RCPT TO:<listme@dsbl.org>
MAIL FROM:<source.com!sender>
RCPT TO:<"listme@dsbl.org">
MAIL FROM:<source.com!sender>
RCPT TO:listme@dsbl.org
MAIL FROM:<source.com!sender>
RCPT TO:<dsbl.org!listme>
MAIL FROM:<>
RCPT TO:<listme@dsbl.org>
MAIL FROM:<>
RCPT TO:<"listme@dsbl.org">
MAIL FROM:<>
RCPT TO:listme@dsbl.org
MAIL FROM:<>
RCPT TO:<dsbl.org!listme>
relaytest then builds a list of possible domains, including "[127.0.0.1]", "localhost", [<ip address>], and any other domains that can be
derived from reverse DNS of the IP or the SMTP greeting.
Domain specific tests:
MAIL FROM:<nobody@DOMAIN>
RCPT TO:<listme@dsbl.org>
MAIL FROM:<nobody@DOMAIN>
RCPT TO:<"listme@dsbl.org">
MAIL FROM:<nobody@DOMAIN>
RCPT TO:listme@dsbl.org
MAIL FROM:<nobody@DOMAIN>
RCPT TO:<listme%dsbl.org@DOMAIN>
MAIL FROM:<nobody@DOMAIN>
RCPT TO:<listme%dsbl.org>
MAIL FROM:<nobody@DOMAIN>
RCPT TO:<"listme%dsbl.org">
MAIL FROM:<nobody@DOMAIN>
RCPT TO:<listme@dsbl.org@DOMAIN>
MAIL FROM:<nobody@DOMAIN>
RCPT TO:<"listme@dsbl.org"@DOMAIN>
MAIL FROM:<nobody@DOMAIN>
RCPT TO:<@DOMAIN:listme@dsbl.org>
MAIL FROM:<nobody@DOMAIN>
RCPT TO:<dsbl.org!listme>
MAIL FROM:<nobody@DOMAIN>
RCPT TO:<dsbl.org!listme@DOMAIN>
MAIL FROM:<DOMAIN!nobody>
RCPT TO:<dsbl.org!listme>
MAIL FROM:<DOMAIN!nobody>
RCPT TO:<dsbl.org!listme@DOMAIN>
MAIL FROM:<nobody@DOMAIN>
RCPT TO:<listme@dsbl.org>
MAIL FROM:<postmaster@DOMAIN>
RCPT TO:<listme@dsbl.org>
MAIL FROM:<administrator@DOMAIN>
RCPT TO:<listme@dsbl.org>
MAIL FROM:<sales@DOMAIN>
RCPT TO:<listme@dsbl.org>
MAIL FROM:<info@DOMAIN>
RCPT TO:<listme@dsbl.org>
MAIL FROM:<webmaster@DOMAIN>
RCPT TO:<listme@dsbl.org>
MAIL FROM:<listserv@DOMAIN>
RCPT TO:<listme@dsbl.org>
relaytest then tries a variety of SMTP AUTH methods to try to relay a message through the target server.
The envelopes used for these tests are always:
MAIL FROM:<sender@source.com>
RCPT TO:<listme@dsbl.org>
The SMTP AUTH methods tried are as follows:
AUTH LOGIN, user=/webmaster, password=(null)
AUTH LOGIN, user=admin, password=admin
AUTH LOGIN, user=administrator, password=(null)
AUTH LOGIN, user=test, password=test
AUTH NTLM (anonymous)
OPTIONS -v Verbose mode. Details of the SMTP transaction are written to standard output.
AUTHOR
Ian Gulliver <ian@penguinhosting.net>
SEE ALSO dsbl.conf(5), spamtrap(1)
2002-04-03 relaytest(1)