This is a discussion on Apacher vs Frontpage within the Apache Web Server forums, part of the Web Server and Related Forums category; I have a www site hosted by a web hotel. The web hotel is running a Windows FontPage server (I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have a www site hosted by a web hotel. The web hotel is running a Windows
FontPage server (I believe). I am also running an Apache Windows server at home. On my Apache server I have an simple test.exe which just displays "Hello World" (the source code is listed at the bottom of this message). When I open the page http://localhost/cgi-bin/test.exe (or via www) when Apache is serving I get a page with "Hello World" as expected. But when I open the page http://www.mypage/test.exe when FrontPage is serving I get a page with download instruction on the test.exe. Or when I open a simple htm file at http://www.mypage/testing.htm I get nothing but an empty page. The source for testing.htm is below. What am I doing wrong? html> <head> <title>Testing</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF"> <!--#exec cgi="test.exe" --> </body> </html> __stdcall int WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow) { cout << "Content-Type: text/html\n\n"; // output HTTP header cout << "<html> <head> <title>Testing</title> "; cout << "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">"; cout << "</head> <body bgcolor=\"#FFFFFF\"> <p>Hello World</p> </body> </html>"; return 0; } |
|
|||
|
frontpage isn't a webserver - check your windows webserver - nothing to do with apache
"John" <John.Smith@invalid.com> wrote in message news:fjb5221gq4a7nfjs07tkbgq0et29gud4ic@4ax.com... >I have a www site hosted by a web hotel. The web hotel is running a Windows > FontPage server (I believe). > > I am also running an Apache Windows server at home. > > On my Apache server I have an simple test.exe which just displays "Hello World" > (the source code is listed at the bottom of this message). > > When I open the page http://localhost/cgi-bin/test.exe (or via www) when Apache > is serving I get a page with "Hello World" as expected. > > But when I open the page http://www.mypage/test.exe when FrontPage is serving I > get a page with download instruction on the test.exe. > Or when I open a simple htm file at http://www.mypage/testing.htm I get nothing > but an empty page. The source for testing.htm is below. > > What am I doing wrong? > > > html> > <head> > <title>Testing</title> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> > </head> > <body bgcolor="#FFFFFF"> > <!--#exec cgi="test.exe" --> > </body> > </html> > > > __stdcall int WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR > lpCmdLine,int nCmdShow) > { > cout << "Content-Type: text/html\n\n"; // output HTTP header > cout << "<html> <head> <title>Testing</title> "; > cout << "<meta http-equiv=\"Content-Type\" content=\"text/html; > charset=iso-8859-1\">"; > cout << "</head> <body bgcolor=\"#FFFFFF\"> <p>Hello World</p> </body> > </html>"; > > return 0; > } |