Why is cgi-bin special?

I have a server side perl script running in the cgi-bin
directory that returns html to the client. It embeds a flash object
with the standard <object> and <embed>
tags. The HTML is received correctly by the client, but the flash
object does not display.
If you save the received page as static html, it displays
just fine, so the syntax is correct. Obviously saved someplace
other than the cgi-bin directory, as it is not readable, generally.
Once the html is returned to the client, how can the
rendering be different from a static html page? I'm saying that if
you do "view source", once from the returned html
and once from the static page, you see no differences, whatsover.
The only difference is the URL of the page. When
"cgi-bin" is in the URL, the object does not
display.

Thanks, Barbara! That did the trick. I was in expert mode but I clicked on 'guided' then clicked on 'expert' again and it showed up.

Similar Messages

  • Video plays on Root folder but not in Cgi-bin folder...Help!

    Hello-
    I just transfered my entire website content form one domain to another and for some reson my videos will not play on the new domain whereas they played correctly in the cg-bin folder of the old domain.  I do not understand why and need your help to figure it out since I am not a flash guy.
    Here is the link to the videos that are not working correctly.  http://www.healthywaterlife.com/cgi-bin/d.cgi/phil/videos.html
    My cgi guy says that all of the cgi is working correctly and he has stated that the problem lies within the code of the html.  So here is the html code for one of the videos...
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="605" height="350" id="FLVPlayer1">
               <param name="movie" value="FLVPlayer_Progressive.swf" />
               <param name="salign" value="lt" />
               <param name="quality" value="high" />
               <param name="scale" value="noscale" />
               <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=http://www.healthywaterlife.com/videos/historyofkangenwater&autoPlay=false&autoRewind=fals e" />
               <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=http://www.healthywaterlife.com/videos/historyofkangenwater&autoPlay=false&autoRewind=fals e" quality="high" scale="noscale" width="605" height="350" name="FLVPlayer1" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />        
    </object>
    And yes, my server, codero, supports all of the cgi as the old domain worked well and was operating on the codero server.
    Thanks for your help!

    Are you sure that all the files have been uploaded?
    The player.swf, the skin.swf, the actual .flv video file, and what about any javascript files used for Flash detection? So that could be as many as 4 files.
    To test, paste the entire absolute address to each of those files directly into your browser address bar, like this:
    http://www.healthywaterlife.com/videos/FLVPlayer_Progressive.swf
    You should not see ANY file not found messages.
    After verifying that each file exists on the server, then it's only a matter of correctly pathing all the Flash assets, and pathing includes correctly spelling file names (upper or lower case.. must be exact) as well using correct folder names.
    To review Flash pathing:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    If that doesn't fix it, post a link. That really give us the best chance to help you.
    Best of luck!
    Adninjastrator

  • What is the relationship between CGI-Executables and cgi-bin?

    I am trying to get CGIs working locally on my Mac and am having difficulty understanding the relationship between CGI-Executables/ and cgi-bin/.
    I have activated CGI in my httpd.conf file, and have the following perl test script: /Library/WebServer/CGI-Executables/test.cgi file, and have the file permissions set appropriatly
    If I call the script from the actual url: http://127.0.0.1/CGI-Executables/test.cgi, it doesn't work. If I use: http://127.0.0.1/cgi-bin/test.cgi, it works fine.
    Why cgi-bin and not CGI-Executables? What is the relationship between /Library/WebServer/CGI-Executables/ and cgi-bin?
    And how do I get CGIs working in individual users' Sites/ file? Do all CGIs go in the /Library/WebServer/CGI-Executables/ directory, or can each users' Site/ directory have it's own cgi-bin?
    Ti Powerbook G4   Mac OS X (10.4.4)  

    Now I am having trouble getting CGI to work in the user directories. I have a perl script that works for 127.0.0.1/cgi-bin/test.cgi, but not for 127.0.0.1/~joe/cgi-bin/test.cgi.
    My apache error log says:
    [Tue Feb 14 08:14:23 2006] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /Users/joe/Sites/cgi-bin/first.cgi
    Permissions for Library/WebServer/CGI-Exectuables/test.cgi and /Users/joe/Sites/cgi-bin/ are 777.
    I think the problem is somewhere in my directory configs. Apache has so many, it's hard to know what's what.
    Here's the first directory directives in httpd.conf:
    # First, we configure the "default" to be a very restrictive set of
    # permissions.
    <Directory />
    Options FollowSymLinks
    AllowOverride Options
    </Directory>
    Farther down, there's this, which I added ExecCGI and index.cgi:
    # Control access to UserDir directories. The following is an example
    # for a site where these directories are restricted to read-only.
    <Directory /Users/*/Sites>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
    DirectoryIndex index.html index.cgi
    <Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
    </LimitExcept>
    </Directory>
    Then down at the bottom of the file is something I suspect was added automatically when the user account was created:
    Include /private/etc/httpd/users/*.conf
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews Includes
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    To further confuse things, there is another file /etc/httpd/user/joe.conf that has additional user-directory directives:
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    Is there something in all these directory configurations that is preventing the user from accessing cgi-bin? Can I add directives to an .htaccess file in the user directory.
    Ti Powerbook G4   Mac OS X (10.4.4)  

  • Servlets in the CGI-BIN

    Can servlets go in the CGI-BIN???
    my server has a CGI-BIN.... does it surport servlets??

    Servlets were conceived to replace cgi-bin programming.
    Servlets can be put anywhere, even in the cgi-bin folder, but servlets need a servlet engine to run, such as Tomcat(jakarta.apache.org/tomcat) or Jrun (from www.macromedia.com), among others.

  • Pointing ItunesU.class to a cgi-bin directory.

    Our school is setting up an ITuneU page and we have successfully compiled the ITunesU.class file but for some reason our web server does not have a cgi-bin directory to put these files into. Can we put the Java files into a different directory or is cgi-bin required?

    Our Itunes university is up and running.

  • I am not able to verify my apple id thro the link (in my email)erro message is " /cgi-bin/Webob-jects/IDMSAccount.woa/wa/vetemail )

    i am not able to verify my apple id thro the link (in my email)erro message is " /cgi-bin/Webob-jects/IDMSAccount.woa/wa/vetemail )
    i pad was bought in uk and is used in india

    lllaass,
    Thank you for responding. I did not create a new ID. I went to Manage Your ID when changing my email. However, my problem is resolved. I called support and recieved help there.
    Somehow my Ipod either wasn't registered to my Apple ID (even though I bought it from the Apple Store) or the registration didn't transfer with the email address change.
    For some reason, though, I did lose all of my previous imessage conversations just because I switched my Apple ID email address. I also had to resync my Google accounts to Mail, Contacts, and Calendar.
    Strange, but everything seems to be relatively back to normal now.

  • File not found: /cgi-bin

    Starting on May 2007, unidentified errors started occurring
    on our coldfusion MX7 servers (Window2003) at approximately the
    same time each night but not every night (...maybe 4 to 5 time a
    week). These errors does not effect the performance our
    applications on these servers or at least I don't think it does. No
    schedule jobs or programs have been created that reference the cfm
    template that this process is trying to locate. FYI, no users are
    in these servers at this time. I'm going to assume it's something
    running in the background and I'm not smart enough to figure it
    out. Does anyone have an idea of what is going on?
    Examples of error msg in application log:
    “May 22, 2007 7:03 PM Error 0 File not found:
    /7x0o7F_9Ns_r.cfm The specific sequence of files included or
    processed is: C:\Inetpub\wwwroot\7x0o7F_9Ns_r.cfm“
    Examples of error msg in exception log:
    "Error","jrpp-462","05/22/07","19:03:33",,"File not found:
    /7x0o7F_9Ns_r.cfm The specific sequence of files included or
    processed is: C:\Inetpub\wwwroot\7x0o7F_9Ns_r.cfm "
    coldfusion.runtime.TemplateNotFoundException: File not found:
    /7x0o7F_9Ns_r.cfm
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:83)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at
    coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    at coldfusion.CfmServlet.service(CfmServlet.java:107)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    "Error","jrpp-462","05/22/07","19:03:33",,"File not found:
    /cgi-bin/7x0o7F_9Ns_r.cfm The specific sequence of files included
    or processed is: C:\Inetpub\wwwroot\cgi-bin\7x0o7F_9Ns_r.cfm "
    coldfusion.runtime.TemplateNotFoundException: File not found:
    /cgi-bin/7x0o7F_9Ns_r.cfm
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:83)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at
    coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    at coldfusion.CfmServlet.service(CfmServlet.java:107)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    at
    jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    In any case, you shouldn't be doing any includes in Application.cfc(side note: capital A). The application file is not meant for presenting CFM pages. Translate all such includes into logic involving, for example, cflocation.

  • Why i cant add special effects to text?

    Why i cant add special effects to text?
    I want add the shadow to text. How i can this done?

    Hi Serhiy,
    What font are you using? Shadow effect can be applied to system fonts only.
    Regards,
    Aish

  • Where is the cgi-bin "backwards" referred to in the tutorial gone?

    Hello.
    I am doing the tutorial for networks, and I am supposed to create a connection to http://java.sun.com/cgi-bin/backwards to test communication. However, it does not exist. Does anyone know what the correct address is, or know of some equvalent site?
    Also, is it not possible to save login information on this site. It is cumbersom to manually log in every time I visit these fora.
    Regards
    JT

    Whats that supposed to mean? Please enlighten silly little me with your endless wisdom. I assume that since on other forums I visit I can save and use cookies with login information so I am automatically logged on, that this is possible here to. Pretty silly.
    And for the record. If all you have to share is aimed at putting down people, you have a sad life indeed.
    JT

  • Cgi-bin folder in 10.4.11

    I'm running 10.4.11 (the regular edition, not server) and I'm running a small website through the personal web sharing feature. I want to integrate a perl script. Do I create a cgi-bin folder in the root folder of my website and put the script in there, or is the cgi-bin folder I'm looking for elsewhere? Thanks.

    So where is the apache config file?
    /etc/httpd/httpd.conf
    Also, by main web content directory, do you mean the root folder of my website, the folder that you mentioned above, or some other folder?
    I mean whatever folder you're using for your web content - by default that's either /Library/WebServer/Documents, or the 'Sites' directory in individual user's home directories.
    My point is that any CGI scripts should be outside of the normal web content.

  • Apache, virtual hosts & cgi-bin

    Hello all,
    I have an AL server running apache, qmail, vpopmail (&mysql), bincimap, squirrelmail.
    I've setup apache to have 2 virtual hosts :
    www.mydomain.com (with docroot /home/httpd/html/www.mydomain.com) as http & mail.mydomain.com (with docroot /home/httpd/html/mail.mydomain.com) as https.
    Everything is working fine so far, except when I ask for http://mail.mydomain.com (not https) it shows the contents of www.mydomain.com. Minor annoyance, but I'd like to fix it some time. Any suggestions ?
    My main problem is that I want to install qmailadmin in mail.mydomain.com, so I can access it via ssl, so I installed it as /home/httpd/cgi-bin/qmailadmin & made a symlink to /home/httpd/html/mail.mydomain.com/cgi-bin.
    When I try to access it (https://mail.mydomain.com/cgi-bin/qmailadmin), I get "500 Internal server error" & in error_log:
    [error] [client MY_IP] Premature end of script headers: qmailadmin
    and in ssl_request_log :
    [14/Jan/2004:17:00:45 +0200] MY_IP TLSv1 RC4-MD5 "GET /cgi-bin/qmailadmin HTTP/1.1" 674
    I've never setup cgi-bin in virtual hosts before & it's driving me nuts, any suggestions ?
    btw, qmailadmin works fine on my home server without any virtual hosts in apache...

    This isn't perfect, but it's probably pretty close to what you're looking for.  You may need to play around with some <Directory/> tags for your cgi-bin directory, or (as the example illustrates below), just put your cgi scripts in the document root for mail.mydomain.com.
    <Directory "/home/httpd/html/www.mydomain.com">
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    <Directory "/home/httpd/html/mail.mydomain.com">
    AllowOverride All
    Options ExecCGI
    Order allow,deny
    Allow from all
    </Directory>
    NameVirtualHost 192.168.1.114:80
    NameVirtualHost 192.168.1.114:443
    <VirtualHost www.mydomain.com:80>
    SSLDisable
    Servername www.mydomain.com
    ServerAdmin [email protected]
    DocumentRoot /home/httpd/html/www.mydomain.com
    DirectoryIndex index.html index.htm index.cgi
    ErrorLog logs/www.mydomain.com_error.log
    CustomLog logs/www.mydomain.com_access.log combined
    </Virtualhost>
    # redirect 80 to 443
    <VirtualHost mail.mydomain.com:80>
    SSLDisable
    Servername mail.mydomain.com
    Redirect / https://mail.mydomain.com
    </Virtualhost>
    <VirtualHost mail.mydomain.com:443>
    SSLEnable
    SSLCertificateFile /home/httpd/conf/mail.mydomain.com.pem
    ServerName mail.mydomain.com
    ServerAdmin [email protected]
    DocumentRoot /home/httpd/html/mail.mydomain.com
    ErrorLog logs/mail.mydomain.com_error.log
    CustomLog logs/mail.mydomain.com_access.log combined
    </Virtualhost>
    hth,
    farphel

  • Where is /cgi-bin/ and who puts files in it?

    One of my clients is trying to make a form work with /cgi-bin/mailto but I can't figure out:
    1) Where is the global /cgi-bin/ supposed to be?
    2) Who is responsible for putting files in it?
    Thanks!

    If you wan't to make the CGIs work server-wide, the default location is /Library/WebServer/CGI-Executables. The default web server setting already has a ScriptAlias directive pointing any address written as www.example.com/cgi-bin redirect to this directory. The global webmaster... the server administrator is responsible for all CGIs in this directory.
    If you want to let each individual webmasters take care of their own CGIs, each website can override this by creating their own cgi directory within their own web directory. This directory can be named anything (e.g. "/scripts/"). Generic form-to-mail type CGIs are usually placed in the /Library/Web... directory for global usage, but if a script is only used by a single website, it's usually put inside their own web directory. You may want to tweak their httpd.conf file to assign this folder as the ScriptAlias target. When you do this, websites can execute the CGIs with the .cgi extension (i.e. pass the script on to whatever compiler/interpretor, like perl). Otherwise, you'll need to name each script like scriptname.pl or scriptname.c instead of scriptname.cgi.
    Extended Keyboard Server   Mac OS X (10.4.8)  

  • Formail and CGI-bin file

    I installed a form mail product called Formail several months
    ago. I am using Dreamweaver 8 at work. I am creating a new form and
    cannot find my cgi-bin file to modify the program. Does anybody
    have any experience with this program in Dreamweaver? I have
    earched for hours. The old form I created still works great but I
    cannot trace it back to the cgi-bin file. I think I have been
    working to long!!!!!

    look inside your cgi-bin for a file named formmail.pl
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Warren Sims" <[email protected]> wrote in
    message
    news:g7d4d0$jf7$[email protected]..
    > I installed a form mail product called Formail several
    months ago. I am
    using
    > Dreamweaver 8 at work. I am creating a new form and
    cannot find my cgi-bin
    file
    > to modify the program. Does anybody have any experience
    with this program
    in
    > Dreamweaver? I have earched for hours. The old form I
    created still works
    great
    > but I cannot trace it back to the cgi-bin file. I think
    I have been
    working to
    > long!!!!!
    >

  • Executing cgi-bin from a java program

    I am trying to develop a Java HTTP server that also includes support for CGI-BIN but the last weeks i am stack at the same point ! I am trying to execute the cgi and then give it an argument but i never have an output ! Please help cause the deadline is coming near !!!
         //Set environment variables
    String[] setVar = {"REQUEST_METHOD=POST","CONTENT_LENGTH="+extra.length};
    String[] cgi = {"/bin/bash","./home/pap/jhttp"+Petition_Analysis.pt.uri.path,"/n"};
    //Execute the cgi-bin with the appropriate input
    Process cgiOut = Runtime.getRuntime().exec(cgi,setVar);
    // get its output (your input) stream
    DataOutputStream put = new DataOutputStream(cgiOut.getOutputStream());
    put.writeBytes(Petition_Analysis.pt.Pet_Body);
    DataInputStream in = new DataInputStream(cgiOut.getInputStream());
    // Read and print the output
    String line;
    StringBuffer page = new StringBuffer();
    while ((line = in.readLine()) != null) {
    page.append(line);
    //Send page to client
    out.print("HTTP/1.1 200 OK\r\n");
    out.print("Content-Length: " + page.toString().length() +"\r\n\r\n");
    System.out.print(page);
    Cgi call is like that:
    ./post_from.cgi
    first_operand=342&second_operand=32&operation=-
    Note that there is a blank line !

    Well no, the script works perfectly, here is the output of the console in Linux system and this exactly what i want to do in the program:
    [pap@laptop pap]$ export CONTENT_LENGTH=11
    [pap@laptop pap]$ export REQUEST_METHOD=POST
    [pap@laptop pap]$ /home/pap/jhttp/cgi-bin/post_form.cgi
    op1=1&op2=2
    Content-Type: text/html
    <html><head><title>Script results</title></head>
    <body>
    <p>Number of sent fields: 2</p>
    <p>
    <b>Field:</b> op1<br>
    <b>Valor:</b> 1
    </p>
    <p>
    <b>Field:</b> op2<br>
    <b>Valor:</b> 2
    </p>
    </body></html>
    So the question is how to this inside a Java program and better forget my code which is erroneous
    also forgive my english :)

  • Cgi-bin, form set-up

    I want to create a registry on our website wherein a customer can setup his/her own registry page, type in what products he/she wants, their quantities, etc.
    I understand that to do this one has first to have a "cgi-bin" file on their site to which all such forms point.
    I currently cannot find any cgi-bin folder on our site. So, am I correct in stating I need one, and if so, how do I go about creating same?
    Bill

    First you mention cgi processing of scripts and then databases? There is no necessary connection between the two.
    cgi form processing has largely been replaced by PHP or other server side languages. Again, there is no connection between PHP/ASP and server-side includes. You can have one without the other.
    You will have to find out from your host what they offer. You will also need to determine what it is that you want to do. Two separate yet equally important questions.

Maybe you are looking for