However, I am not able to. Error received was "Connection was reset".
(Attached image)
My laptop IP is 192.168.8.149, and I do a telnet to confirm the connectivity :
I do a curl directly from the host that runs the atricore modules :
This is the output from ss -tulpn for port 8081 :
Correct me if I am wrong, but I believe the telnet clearly shows that the access to that ip and port is not available, and most probably due to physical firewall connection?
This is because there is no firewalld running within the server itself :
And what does the status HTTP/1.1 302 Found mean from the curl output?
I hope opening the port at the physical firewall level will resolve this problem?
Hello,
I need to redirect an existing URL, how can i do that?
There's a current web address to a GUI that I have to redirect to another webaddress. Does anyone know how to do this?
This is on Unix boxes Linux.
example:
https://m45.testing.address.net/host.php
make it so the... (3 Replies)
We have two servers A and B (both running Solaris 10) out of which one is application server and the other is database server. The two servers faced certain network issues and the two servers were temporarily disconnected.this happened around 5AM GMT monday.Can anyone suggest some log files or... (2 Replies)
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
http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena
The ID in the middle is always random due to the cookie.
I... (5 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)
Discussion started by: striker4o
18 Replies
7. Post Here to Contact Site Administrators and Moderators
Here is the URL we will use:
https://www.unix.com/post-here-contact-site-administrators-moderators/241569-doesnt-allow-me-use-code-tags.html
I will put this in this text with the URL BBCODE.
Now I will save the thread and test the URL. (1 Reply)
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)
Discussion started by: scott_cog
2 Replies
LEARN ABOUT DEBIAN
ns_urlisdir
Ns_UrlToFile(3aolserver) AOLserver Library Procedures Ns_UrlToFile(3aolserver)__________________________________________________________________________________________________________________________________________________NAME
Ns_SetUrlToFileProc, Ns_UrlIsDir, Ns_UrlIsFile, Ns_UrlToFile - URL to file mapping procedures
SYNOPSIS
#include "ns.h"
void
Ns_SetUrlToFileProc(char *server, Ns_UrlToFileProc *procPtr)
int
Ns_UrlIsDir(char *server, char *url)
int
Ns_UrlIsFile(char *server, char *url)
int
Ns_UrlToFile(Ns_DString *dsPtr, char *server, char *url)
_________________________________________________________________DESCRIPTION
These functions map URL paths to real files and directories. They are normally used to determine whether a given URL has a corresponding
file or directory and to return the real filesystem path that corresponds to the URL.
Ns_SetUrlToFileProc(server, procPtr)
Set a pointer to a custom routine to use in place of Ns_UrlToFile.
Ns_UrlIsDir(server, url)
Construct a directory name by appending the URL to the current AOLserver pages directory for the specified server. Return NS_TRUE if
the directory exists; NS_FALSE otherwise.
Ns_UrlIsFile(server, url)
Construct a file name by appending the URL to the current AOLserver pages directory for the specified server. Return NS_TRUE if the
file exists and is a regular file; NS_FALSE otherwise.
Example:
/* IsFile - Simple request to determine if an URL is a file. */
int
IsFile(Ns_Conn *conn, void *ctx)
{
int isfile;
char *server;
server = Ns_ConnServer(conn);
isfile = Ns_UrlIsFile(server, conn->request->url);
if (isfile) {
Ns_ConnReturnNotice(conn, 200, "File", NULL);
} else {
Ns_ConnReturnNotice(conn, 200, "Not a File", NULL);
}
return NS_OK;
}
Ns_UrlToFile(dsPtr, server, url)
The Ns_UrlToFile function writes the full path name of the file corresponding to the given URL. The result is appended to the
Ns_DString. The function does not check that the file exists or is readable by the AOLserver process. This function returns a status
of NS_OK or NS_ERROR.
Normally this prepends the pageroot to the URL path. If you have created your own custom routine and used Ns_SetUrlToFileProc to
point to it, your routine is called instead. This could be used to create, for example, a module that takes the given URL and maps
it to a file in a different way than the default Ns_UrlToFile routine.
Example:
/* A simple page fetch request function. */
int
SimpleFetch(Ns_Conn *conn, void *ctx)
{
Ns_DString ds;
FILE fp;
char *server;
Ns_DStringInit(&ds);
server = Ns_ConnServer(conn);
Ns_UrlToFile(&ds, server, conn->request->url);
fp = fopen(ds.string, "r");
Ns_ConnSendOpenFp(conn, fp, -1);
fclose(fp);
Ns_DStringFree(&ds);
return NS_OK;
}
SEE ALSO nsd(1), info(n)
KEYWORDS AOLserver 4.0 Ns_UrlToFile(3aolserver)