Apache Server Port

I'm attempting to configure a router to forward traffic to my apache server....however I do not know what port the server uses...is there a way to determine this or even change the port? Thank you...

Web servers usually use Port 80, which is the default for Apache as installed on Macs. Set up the router to forward Port 80 to the local IP address of your Mac and you should be able to serve pages.
You can change the port in the Apache config file. I don't advise messing with this unless you know what you're doing, though. I just learned that the hard way!

Similar Messages

  • Cannot configure IIS at port 80 as Apache server already running at 80

    I have to install BAM in a PC in which Apache server is already running in port 80. So IIS cannot run at port 80. How can i configure BAM to use a different port of IIS ??
    Please suggest...

    Change 2 config files:
    1) OracleBAMEventEngine.exe.config
    Change value to include port number:
    <!-- WebApplication configuration -->
    <add key="WebServerName" value="SERVERNAME:PORT" />
    This will ensure it makes a correct service call necessary for notification.
    2) Web.config
    Change value to include port number:
    <add key="ApplicationHostName" value="SERVERNAME:PORT" />
    (This is referred to in the Installation guide if you choose to use another port number other than 80 or 443)
    Also, change this value to include port number:
    EventEngineServerName: EventEngine server machine name that DNS resolves to IP address,
    or simply IP address use "localhost" for remoting to the current box
         -->
    <add key="EventEngineServerName" value="SERVERNAME:PORT" />
    -michelle

  • Apache server + mod_python - Error 403

    Hi.
    I'm totally new in Apache server. As topic says, I have problems with permissions to my server directory. Here's my httpd.conf file:
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
    # In particular, see
    # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
    # for a discussion of each configuration directive.
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path. If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so "logs/access_log"
    # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
    # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
    # will be interpreted as '/logs/access_log'.
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    # Do not add a slash at the end of the directory path. If you point
    # ServerRoot at a non-local disk, be sure to specify a local disk on the
    # Mutex directive, if file-based mutexes are used. If you wish to share the
    # same ServerRoot for multiple httpd daemons, you will need to change at
    # least PidFile.
    ServerRoot "/etc/httpd/"
    # Mutex: Allows you to set the mutex mechanism and mutex file directory
    # for individual mutexes, or change the global defaults
    # Uncomment and change the directory if mutexes are file-based and the default
    # mutex file directory is not on a local disk or is not appropriate for some
    # other reason.
    # Mutex default:/run/httpd
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses.
    #Listen 12.34.56.78:80
    Listen 80
    # Dynamic Shared Object (DSO) Support
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available _before_ they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    LoadModule authn_file_module modules/mod_authn_file.so
    #LoadModule authn_dbm_module modules/mod_authn_dbm.so
    #LoadModule authn_anon_module modules/mod_authn_anon.so
    #LoadModule authn_dbd_module modules/mod_authn_dbd.so
    #LoadModule authn_socache_module modules/mod_authn_socache.so
    LoadModule authn_core_module modules/mod_authn_core.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_user_module modules/mod_authz_user.so
    #LoadModule authz_dbm_module modules/mod_authz_dbm.so
    #LoadModule authz_owner_module modules/mod_authz_owner.so
    #LoadModule authz_dbd_module modules/mod_authz_dbd.so
    LoadModule authz_core_module modules/mod_authz_core.so
    #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule access_compat_module modules/mod_access_compat.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    #LoadModule auth_form_module modules/mod_auth_form.so
    #LoadModule auth_digest_module modules/mod_auth_digest.so
    #LoadModule allowmethods_module modules/mod_allowmethods.so
    #LoadModule file_cache_module modules/mod_file_cache.so
    #LoadModule cache_module modules/mod_cache.so
    #LoadModule cache_disk_module modules/mod_cache_disk.so
    #LoadModule cache_socache_module modules/mod_cache_socache.so
    #LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
    #LoadModule socache_dbm_module modules/mod_socache_dbm.so
    #LoadModule socache_memcache_module modules/mod_socache_memcache.so
    #LoadModule watchdog_module modules/mod_watchdog.so
    #LoadModule macro_module modules/mod_macro.so
    #LoadModule dbd_module modules/mod_dbd.so
    #LoadModule dumpio_module modules/mod_dumpio.so
    #LoadModule echo_module modules/mod_echo.so
    #LoadModule buffer_module modules/mod_buffer.so
    #LoadModule data_module modules/mod_data.so
    #LoadModule ratelimit_module modules/mod_ratelimit.so
    LoadModule reqtimeout_module modules/mod_reqtimeout.so
    #LoadModule ext_filter_module modules/mod_ext_filter.so
    #LoadModule request_module modules/mod_request.so
    LoadModule include_module modules/mod_include.so
    LoadModule filter_module modules/mod_filter.so
    #LoadModule reflector_module modules/mod_reflector.so
    #LoadModule substitute_module modules/mod_substitute.so
    #LoadModule sed_module modules/mod_sed.so
    #LoadModule charset_lite_module modules/mod_charset_lite.so
    #LoadModule deflate_module modules/mod_deflate.so
    #LoadModule xml2enc_module modules/mod_xml2enc.so
    #LoadModule proxy_html_module modules/mod_proxy_html.so
    LoadModule mime_module modules/mod_mime.so
    #LoadModule ldap_module modules/mod_ldap.so
    LoadModule log_config_module modules/mod_log_config.so
    #LoadModule log_debug_module modules/mod_log_debug.so
    #LoadModule log_forensic_module modules/mod_log_forensic.so
    #LoadModule logio_module modules/mod_logio.so
    #LoadModule lua_module modules/mod_lua.so
    LoadModule env_module modules/mod_env.so
    #LoadModule mime_magic_module modules/mod_mime_magic.so
    #LoadModule cern_meta_module modules/mod_cern_meta.so
    #LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so
    #LoadModule ident_module modules/mod_ident.so
    #LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule version_module modules/mod_version.so
    #LoadModule remoteip_module modules/mod_remoteip.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
    LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    #LoadModule proxy_fdpass_module modules/mod_proxy_fdpass.so
    LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    LoadModule proxy_express_module modules/mod_proxy_express.so
    #LoadModule session_module modules/mod_session.so
    #LoadModule session_cookie_module modules/mod_session_cookie.so
    #LoadModule session_dbd_module modules/mod_session_dbd.so
    LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
    #LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
    #LoadModule ssl_module modules/mod_ssl.so
    #LoadModule dialup_module modules/mod_dialup.so
    LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
    LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
    LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
    LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
    LoadModule mpm_event_module modules/mod_mpm_event.so
    LoadModule unixd_module modules/mod_unixd.so
    #LoadModule heartbeat_module modules/mod_heartbeat.so
    #LoadModule heartmonitor_module modules/mod_heartmonitor.so
    #LoadModule dav_module modules/mod_dav.so
    LoadModule status_module modules/mod_status.so
    LoadModule autoindex_module modules/mod_autoindex.so
    #LoadModule asis_module modules/mod_asis.so
    #LoadModule info_module modules/mod_info.so
    #LoadModule suexec_module modules/mod_suexec.so
    #LoadModule cgid_module modules/mod_cgid.so
    #LoadModule cgi_module modules/mod_cgi.so
    #LoadModule dav_fs_module modules/mod_dav_fs.so
    #LoadModule dav_lock_module modules/mod_dav_lock.so
    #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule dir_module modules/mod_dir.so
    #LoadModule imagemap_module modules/mod_imagemap.so
    #LoadModule actions_module modules/mod_actions.so
    #LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule alias_module modules/mod_alias.so
    #LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule python_module modules/mod_python.so
    <IfModule unixd_module>
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    User http
    Group http
    </IfModule>
    # 'Main' server configuration
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition. These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed. This address appears on some server-generated pages, such
    # as error documents. e.g. [email protected]
    ServerAdmin [email protected]
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    #ServerName www.example.com:80
    # Deny access to the entirety of your server's filesystem. You must
    # explicitly permit access to web content directories in other
    # <Directory> blocks below.
    <Directory />
    AllowOverride none
    Require all denied
    </Directory>
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "/srv/http"
    <Directory "/srv/http">
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    Options Indexes FollowSymLinks
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # AllowOverride FileInfo AuthConfig Limit
    AllowOverride None
    # Controls who can get stuff from this server.
    Require all granted
    </Directory>
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    <IfModule dir_module>
    DirectoryIndex index.html
    </IfModule>
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    <Files ".ht*">
    Require all denied
    </Files>
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here. If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog "/var/log/httpd/error_log"
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    <IfModule log_config_module>
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
    # You need to enable mod_logio.c to use %I and %O
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    CustomLog "/var/log/httpd/access_log" common
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #CustomLog "/var/log/httpd/access_log" combined
    </IfModule>
    <IfModule alias_module>
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL. You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client. The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #Scriptsock cgisock
    </IfModule>
    # "/srv/http/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/srv/http/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
    </Directory>
    <IfModule mime_module>
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    TypesConfig conf/mime.types
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #AddType application/x-gzip .tgz
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #AddHandler cgi-script .cgi
    # For type maps (negotiated resources):
    #AddHandler type-map var
    # Filters allow you to process content before it is sent to the client.
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
    </IfModule>
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #MIMEMagicFile conf/magic
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    # MaxRanges: Maximum number of Ranges in a request before
    # returning the entire resource, or one of the special
    # values 'default', 'none' or 'unlimited'.
    # Default setting is to accept 200 Ranges.
    #MaxRanges unlimited
    # EnableMMAP and EnableSendfile: On systems that support it,
    # memory-mapping or the sendfile syscall may be used to deliver
    # files. This usually improves server performance, but must
    # be turned off when serving from networked-mounted
    # filesystems or if support for these functions is otherwise
    # broken on your system.
    # Defaults: EnableMMAP On, EnableSendfile Off
    #EnableMMAP off
    #EnableSendfile on
    # Supplemental configuration
    # The configuration files in the conf/extra/ directory can be
    # included to add extra features or to modify the default configuration of
    # the server, or you may simply copy their contents here and change as
    # necessary.
    # Server-pool management (MPM specific)
    Include conf/extra/httpd-mpm.conf
    # Multi-language error messages
    Include conf/extra/httpd-multilang-errordoc.conf
    # Fancy directory listings
    Include conf/extra/httpd-autoindex.conf
    # Language settings
    Include conf/extra/httpd-languages.conf
    # User home directories
    Include conf/extra/httpd-userdir.conf
    # Real-time info on requests and configuration
    #Include conf/extra/httpd-info.conf
    # Virtual hosts
    #Include conf/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    #Include conf/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
    # Various default settings
    Include conf/extra/httpd-default.conf
    # Configure mod_proxy_html to understand HTML4/XHTML1
    <IfModule proxy_html_module>
    Include conf/extra/proxy-html.conf
    </IfModule>
    # Secure (SSL/TLS) connections
    #Include conf/extra/httpd-ssl.conf
    # Note: The following must must be present to support
    # starting without SSL on platforms with no /dev/random equivalent
    # but a statically compiled-in mod_ssl.
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    # uncomment out the below to deal with user agents that deliberately
    # violate open standards by misusing DNT (DNT *must* be a specific
    # end-user choice)
    #<IfModule setenvif_module>
    #BrowserMatch "MSIE 10.0;" bad_DNT
    #</IfModule>
    #<IfModule headers_module>
    #RequestHeader unset DNT env=bad_DNT
    #</IfModule>
    <Directory /home/developer/www/>
    AddHandler mod_python .py
    PythonHandler mptest
    PythonDebug On
    </Directory>
    httpd-userdir.conf file:
    # Settings for user home directories
    # Required module: mod_authz_core, mod_authz_host, mod_userdir
    # UserDir: The name of the directory that is appended onto a user's home
    # directory if a ~user request is received. Note that you must also set
    # the default access control for these directories, as in the example below.
    UserDir public_html
    # Control access to UserDir directories. The following is an example
    # for a site where these directories are restricted to read-only.
    <Directory "/home/developer/www/">
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    Require method GET POST OPTIONS
    </Directory>
    and path permissions
    drwxr-xr-x 4 root root 4096 03-16 12:24 home
    drwx-----x 11 developer users 4096 03-18 21:03 developer
    drwxr-xr-x 2 http http 4096 03-18 21:50 www
    -rwxrwxrwx 1 http http 137 03-18 21:08 mptest.py
    Do you have any suggestions? Thanks in advance

    Thanks for reply
    I've added read access to developer directory:
    drwxr--r-x 11 developer users 4096 03-18 21:03 developer
    Nothing changed.
    error_log
    [Tue Mar 18 22:42:47.462658 2014] [authz_core:error] [pid 2150:tid 2941197120] [client 192.168.1.100:56103] AH01630: client denied by server configuration: /home/developer/public_html
    No idea how "public_html" get there?!
    access_log
    192.168.1.100 - - [18/Mar/2014:22:38:34 +0100] "GET /~developer HTTP/1.1" 403 1081
    192.168.1.100 - - [18/Mar/2014:22:38:45 +0100] "GET /~developer/www HTTP/1.1" 403 1081
    192.168.1.100 - - [18/Mar/2014:22:42:47 +0100] "GET /~developer/www HTTP/1.1" 403 1081
    192.168.1.100 - - [18/Mar/2014:22:42:47 +0100] "GET /favicon.ico HTTP/1.1" 404 1099
    192.168.1.100 - - [18/Mar/2014:22:42:47 +0100] "GET /favicon.ico HTTP/1.1" 404 1099
    EDIT
    Ok, I've found the solution for that. In file httpd-userdir.conf UserDir was "public_html" instead of "www".
    Now I'm getting error 500
    error_log
    [Tue Mar 18 22:48:36.841443 2014] [mpm_event:notice] [pid 2803:tid 3074947456] AH00489: Apache/2.4.7 (Unix) mod_python/3.5.0- Python/3.3.5 configured -- resuming normal operations
    [Tue Mar 18 22:48:36.841528 2014] [core:notice] [pid 2803:tid 3074947456] AH00094: Command line: '/usr/bin/httpd'
    [Tue Mar 18 22:48:45.873329 2014] [:error] [pid 2805:tid 3033516864] make_obcallback: could not import mod_python.apache.\n
    [Tue Mar 18 22:48:45.874559 2014] [:error] [pid 2805:tid 3033516864] make_obcallback: Python path being used "['/usr/lib/python33.zip', '/usr/lib/python3.3', '/usr/lib/python3.3/plat-linux', '/usr/lib/python3.3/lib-dynload', '/usr/lib/python3.3/site-packages']".
    [Tue Mar 18 22:48:45.874589 2014] [:error] [pid 2805:tid 3033516864] get_interpreter: no interpreter callback found.
    [Tue Mar 18 22:48:45.874612 2014] [:error] [pid 2805:tid 3033516864] [client 192.168.1.100:56122] python_handler: Can't get/create interpreter., referer: http://192.168.1.108/~developer/
    Last edited by maci3k (2014-03-18 22:37:32)

  • How to get my apache server running on my ip address?

    I am new to apache server. I installed apache server as described in :
    https://wiki.archlinux.org/index.php/LAMP
    Firstly where do I store the files that I want to open using my apache server and how do I like map my public ip to apache server?
    say my public ip is x.x.x.x
    how do I get it work such that next time in browser instead of typing http://localhost/ if I type my public ip it shows the contents on my server.
    Thanks

    Read completely before trying.....
    1. Register an account at www.dyndns.org, its free, up to two domains.
    2. Login to dyndns and create a domain of your choice.
    3. This dyndns keeps track of your router IP addresses which is typically dynamic.
    4. Now we need to update the ip addresses of the domain when ever it changes. It generally changes every time we restart the router. In order to do it automatically we will setup the dyndns account on the router.
    5. On the router, login as admin to change/setup the settings. The router can be reached with the ip 192.168.1.1, this ip addresses changes with the manufacturer, like for belkin its 192.168.2.1
    6. On the router check for something which says DDNS, here you can setup the dyndns.
    7. Give the login details for your dyndns and the domain name.
    8. So, now you have linked your router to your dyndns and you can reach the router from anywhere in the world by type the domain name. The ip is not reliable since its dynamic and so it changes.
    9. No to use an application on a computer connected to the router. You need to use port forwarding.
    10. By using port forwarding, we can make the router redirect the requests to a computer on the network.
    11. Now again, your computer is typically connected to router using DHCP or dynamic ip. So need a static ip address for the computer as well so that it will remain constant all the times and the router can redirect the requests to this ip.
    12. Make the computer acquire a static ip. Configure your system for static ip. You just need to specify some ip address out of the dhcp range. So a static ip address can be 192.168.1.101 (as first 100 are for dhcp).
    13. Now on the router look for Port-Forwarding or Virtual Servers etc...
    14. You will be able to see a list of text boxes for ip and port.
    15. Now specify ip address of the static ip address computer and any port number like 8080. Make the private port or the internal port as the port number of your application. Application name can be anything. Type can be UDP or Choose Both, use TCP only if your are connected with a LAN cable.
    16. Here is an example...
    If we are using a webserver on our computer which runs on port 8080, we use it by typing..
    http://localhost:8080
    If someone on the same router whats to use our webserver they can type in:
    http://<ip-address>:8080 which can be http://192.168.1.5:8080
    Here as you can see, the ip address is dynamic, so change it to 101 from 5. When you choose static, the OS will ask you to specify the ip address, then just specify the ip as 101.
    Now you can access the web server by using the ip:
    http://192.168.1.101:8080
    But this can be done only by the people connected to the same router. Now we need to make it accessible by anyone in the world. So we need to make people access your computer which is behind the router.
    So first we need to make people access the router. But since the router's public IP is dynamic. We need something to keep track of the ever changing ip address of the router. Such kind of service is the dyndns.org
    By specifying the login details and domain from dyndns inside the router, the router uploads the new IP everytime it changes to the dyndns servers. The dyndns keeps track of the ip address.
    lets say our domain is registerd as: project.dyndns.org
    we provide this domain and login details to our router, and the router updates the ip address in case of any changes.
    We will now be able to reach the router by typing:
    http://project.dyndns.org
    we dont have to worry about the ip address any more.
    But still we need to get to the computer to access the web server.
    So we have to link the router to the computer. As we know our computer is at IP 192.168.1.101
    Now we will setup the port forwarding so that any request to a port A on the router will be redirected to a port B of the IP 192.168.1.101, which is the computer itself.
    Here port B is 8080 on the computer with the IP 192.168.1.101
    So we need to link a port say 8090 on the router to the 8080 on the computer.
    So, configure your router for port forwarding so that the 8090 on the router will point to 8080 on 192.168.1.101
    Now, anyone can access the router by typing:
    http://project.dyndns.org
    But to reach the computer we need to type the port as well, so type:
    http://project.dyndns.org:8090
    So any request to 8090 will be redirected to the 8080 on the computer which is handled by the webserver on the computer.
    EDIT:
    Once everything is setup, you can use the domain for SSH and other remote access tools. Just do the port forwarding for the required tools separately.
    Last edited by gopichand (2011-12-05 15:16:23)

  • Can not connect to Admin Console FMS 3.5 running separate Apache Server

    Hi All! I have installed the FMS 3.5 Server on a separate IP from our main Apache Server: The server is running Redhat Linux 2.6.18-128.1.10.el5
    FMS 3.5 running on ***.***.**.138 using ports 1935, 8080 (Admin Server using port 1111)
    Apache 2 running on ***.***.**.139 using port 80, 443. (several sites setup on this IP)
    However, when accessing the fms_adminConsole.htm in the root directory of one of the domains on ***.***.**.139, all login attempts fail. I am connecting to localhost and using the assigned user and password set up in fms.ini. Using either IP fails as well. The FMS server is set up to listen to all hosts as no specific IPs were set.
    /var/log/messages show that FMS and the Admin Server are up an running and listening:
    Jul  7 12:15:37 228215-web1 Service[28196]: Server starting...
    Jul  7 12:15:37 228215-web1 Service[28196]: Server started (/opt/adobe/fms/conf/Server.xml).
    Jul  7 12:15:37 228215-web1 Adaptor[28216]: Listener started ( _defaultRoot__edge1 ) : localhost:19350/v4
    Jul  7 12:15:38 228215-web1 Adaptor[28216]: Listener started ( _defaultRoot__edge1 ) : 1935/v4
    Jul  7 12:15:38 228215-web1 Adaptor[28216]: Listener started ( _defaultRoot__edge1 ) : 8080/v4
    Jul  7 12:16:20 228215-web1 Service[28480]: Server starting...
    Jul  7 12:16:20 228215-web1 Adaptor[28480]: Listener started ( FCSAdminIpcProtocol ) : localhost:11110/v4
    Jul  7 12:16:21 228215-web1 Adaptor[28480]: Listener started ( FCSAdminAdaptor ) : 1111/v4
    Jul  7 12:16:22 228215-web1 Service[28480]: Server started (./conf/Server.xml).
    All other settings for FMS are default. This is my first time setting up FMS as a fresh install on a new unknown server and I am at a loss as to what settings to check or which files I may need to modify to get it to connect properly. It is a managed server is hosted by rackspace.com if that makes any difference.
    Sorry if I have not provided enough info... let me know what I missed and I will supply it.

    Sorry for the confusion! *I* am the one really confused. But to answer your question (I hope), the webpage is on the same physical server as the FMS server, but I am using an outside network (I am not on the local server network) to browse the webpages.
    Both IPs fail when trying to reach:
    http://***.***.**.138:1111
    http://***.***.**.139:1111
    Does that mean the ports are blocked? The /var/log/messages shows:
    Jul  7 13:20:37 228215-web1 Service[29862]: Server starting...
    Jul  7 13:20:37 228215-web1 Service[29862]: Server started (/opt/adobe/fms/conf/Server.xml).
    Jul  7 13:20:37 228215-web1 Adaptor[29882]: Listener started ( _defaultRoot__edge1 ) : localhost:19350/v4
    Jul  7 13:20:38 228215-web1 Adaptor[29882]: Listener started ( _defaultRoot__edge1 ) : 1935/v4
    Jul  7 13:20:38 228215-web1 Adaptor[29882]: Listener started ( _defaultRoot__edge1 ) : 8080/v4
    Jul  7 13:20:51 228215-web1 Service[30144]: Server starting...
    Jul  7 13:20:51 228215-web1 Adaptor[30144]: Listener started ( FCSAdminIpcProtocol ) : localhost:11110/v4
    Jul  7 13:20:52 228215-web1 Adaptor[30144]: Listener started ( FCSAdminAdaptor ) : 1111/v4
    Jul  7 13:20:53 228215-web1 Service[30144]: Server started (./conf/Server.xml).

  • Apache Server starting up problem !

    Hi,
    I am getting problem in starting up the server. Right now I am using the Apache - tomcat server. I have started the Apache server and restarted the tomcat server by using restart_apache.bat .The server is starting fine.
    Somehow i couldn't able to open the http://localhost:8080/ on the browser. I have read the forum answers , but it couldn't help me.
    I appreciate if anyone help me out.
    - balaji

    Did you check the port number? It may not be 8080.
    What error r u geting?

  • Forms 6i and Apache server

    HI all,
    I have an assignment to replicate production installation to another environment on another server. Currently what is installed on those servers is:
    - Main server (production): Windows server 2000 SP4, Forms 6i service, Reports 6i service , iSuites HTTP listener. In some documents I found that 9i Rel1 Applications Server was actually installed creating Forms60service, Reports60service and HTTP listener. Unfortunately, I don't have access to 9i Rel1 disks (only 9i Rel2 and Forms6i Rel2) and since it is desupported, I can't download them online.
    - Other server: Windows Server 2003 ( with installed Forms 10g and services disabled).
    What I did was install Forms6i server and Apache web server. Apache server works, and I made aliases so it can access files on the server. Aliases were taken from documentation of production installation. However, I don't know how to make Apache listen for forms server requests. I assume in 9i it is handled automatically, like in 10g?
    Questions:
    -Does 9i Rel1 create those services? I'm new to 9i and 6i AS, and don't have disks to test it. Is there a way to download 9i Rel1?
    -How can Apache be configured to handle requests to Forms server? Its now listening on port 81, and when called gives a blank page. JInitiator isn't started.
    Any help would be greatly appreciated.

    If you are using a standalone Apache install and not the one included with iAS 1.0.2, you must run the Forms Server. If you are using the iAS installation, you can use either the Forms Server or the Forms Servlet. The Forms Servlet takes advantage of JServ, which allows requests from Forms to route on the same port by which the HTTP listener is using. On the other hand, if you don't use the Servlet and instead use the Forms Server, requests from the client are routed from the client directly to the Forms Server on a different port. In this case the HTTP Server is only used for the initial request which then pass future requests to the server. The down side to this is that you must run 2 servers and have 2 available ports - one for the http listener and one for Forms. This is why using the Servlet is preferred.
    I believe you must be using Forms 6i Release 2 (6.0.8.11) plus patch 10 or 11 or newer in order to successfully deploy using Servlet. This translates into being iAS 1.0.2.2.2 if I recall correctly.
    Here are some doc references which may be of help:
    http://www.oracle.com/technetwork/developer-tools/forms/documentation/techlisting-084882.html
    http://www.oracle.com/technetwork/documentation/6i-forms-084462.html
    http://www.oracle.com/technetwork/documentation/forms-094534.html
    http://www.oracle.com/technetwork/documentation/dev-arch-093406.html

  • How do I change OS X (10.5.4) web server port?

    Hello,
    I'm trying to change the OS X web server port from port 80 to something else. In 10.4 I did this via modifying the httpd.config file in /private/etc/httpd/ but this doesn't work in 10.5 — no matter what I set the port to in the config file, it still only connects for port 80 (and yes, I've restarted Apache)?!?
    Anyone know how to do this under 10.5?
    Thanks,
    Kristin.

    xnav wrote:
    /private/etc/apache2/httpd.conf
    I believe the OP has already aware of this and said that modifying it and restarting the server did not work.

  • Can't connect to Apache Server Remotely

    I have set up Apache on Port 81 and I have set up port forwarding for 81 and 433 on my router but I can't seem to connect to Apache from another computer. My username is in http group.
    The only way I can connect is by localhost:81
    If I try ipaddress:81 I get can't establish a connection to the server.
    Anyone have any ideas.
    Thanks in advance!!

    pluckypigeon wrote:
    Sorry for all the confusion.
    I just want to view Apache through a Web Browser from another machine.
    I have set the port to 81 because 80 is taken by my router configuration.
    If I type localhost:81 in the URL bar I can view my web server but if I type my ip address:81 it doesn't work.
    No worries, this is just what I wanted. Try editing and adding to the bottom of the file /etc/httpd/conf/httpd.conf:
    Listen YOUR_IP_ADDRESS:81
    <VirtualHost IP_ADDRESS_HERE:81>
    ServerName YOUR_SERVER_NAME
    ServerAdmin YOUR_EMAIL_ADDRESS
    DocumentRoot PATH TO YOUR HTML FILES
    RewriteEngine On
    RewriteRule /(.*) https://YOUR_IP_ADDRESS:433/$1
    </VirtualHost>
    <VirtualHost IP_ADDRESS_HERE:433>
    ServerName YOUR_SERVER_NAME
    ServerAdmin YOUR_EMAIL_ADDRESS
    DocumentRoot PATH TO YOUR HTML FILES
    TransferLog /var/log/httpd/local.access.log
    ErrorLog /var/log/httpd/local.error.log
    </VirtualHost>
    I don't know if the 433 will be the secure part of your page but to have a cert attached to that, you will have to add a bit more to the VirtualHost related to 433 (you can read more about it at this link: http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html). All the parts with CAPITAL LETTERS are parts where you will probably want to add in whatever relates to your set up.
    I noticed that by default, apache hosts all of their files in /srv/http so you can place all your files in there or another location (its really up to you).
    After any change to the httpd.conf file, you must restart or reload the httpd service located in /etc/rc.d/httpd
    Hope this helps.
    ::EDIT:: What 'JuseBox' is probably a great place to check as well. If your /etc/hosts.allow or /etc/hosts.deny is in play, you want to make sure you aren't denying everything or only allowing specific things into your apache server. Good call JuseBox!
    Last edited by ruffedgz (2010-01-15 19:11:39)

  • Fmsmaster using admin server port

    It seems after a while the admin server stops responding on our fms server.  When logging into the linux machine, I can see that the fms admin process is not running, and the pid in fmsadmin.pid is stale.  When trying to restart the service with:
    "./fmsmgr adminserver restart"
    it fails to start the service with the following message in /var/log/messages:
    Failed to create listener for adaptor admin, IP , port 1111: TCCommBridge::createListener 0.0.0.0:1111/v4: bind failed!!!.
    Failed to create listener for adaptor admin, IP , port 1111: TCCommBridge::createListener 0.0.0.0:1111/v4: bind failed!!!.
    Failed to initialize listeners for adaptor admin, FMS is already running or other processes are using the same ports.
    Checking to see what is listening on port 1111 with netstat:
    tcp        0      0 127.0.0.1:11110             0.0.0.0:*                   LISTEN      11005/fmsmaster
    tcp        0      0 0.0.0.0:1111                0.0.0.0:*                   LISTEN      11005/fmsmaster
    This is the second time this has happend.  How is it possible for fmsmaster to be using the admin server ports, and how would I prevent this in the future?
    Thanks,

    5065bfd6f653ec44bfb34d158297604b  fmsmaster
    303928c69d89aaf28da983925874c73b  fmscore
    3c39636a7c99d3aa431985d20b780a75  fmsedge
    54167368f1fbe02d34cfc0e639787203  fmsadmin
    Today it seems it is showing as fmscore is incorrectly listed as using this port.
    tcp        0      0 127.0.0.1:11110             0.0.0.0:*                   LISTEN      922/fmscore
    tcp        0      0 0.0.0.0:1111                0.0.0.0:*                   LISTEN      922/fmscore
    apache     922 11005  0 09:02 ?        00:00:00 /usr/local/macromedia/fms/fmscore -adaptor _defaultRoot_ -vhost _defaultVHost_ -app Voice3 -inst 2904 -tag -conf ./conf/Server.xml -name _defaultRoot_:_defaultVHost_:Voice3:2904:
    FMS is still configured to only listen on 1935,443,80.  Does this mean it is something to do with the machine itself or maybe the installation of fms?

  • IFS 1.1.5/Oracle Apache Server/Linux

    I have just installed iFS 1.1 for Linux on a new installation of Oracle 8.1.7 on Linux. My apologies in advance if my problem has been addressed in another post on this forum, but I have looked through most of the messages without finding someone with the same problem.
    After doing all of the installs and then running "ifsapachesetup" to configure the Oracle HTTP server to access iFS, I encountered all sorts of problems trying to run any servlet or JSP using the Apache server, including the iFS servlet (every servlet access said "Internal Server Error".)
    To make a long story short, my configuration seems to work now if I remove "servlet.startup=files" from zone.properties in the Apache JServ configuration directory. In other words, the automatic startup seemed to hose the entire JServ instance. (I got many errors saying "cannot connect to localhost:8007 ..." in jserv.log) I tried many different configurations while manually editing the JServ configuration files, and this one seemed to be the only one in which all of the servlets, including iFS, worked correctly. Does this make any sense?
    Also, if I tried to run the iFS servlet/JSPs using the newer Apache Tomcat servlet engine, will there be any problems with that? I'm not talking of whether its supported or not, but is it feasible?
    null

    I messed around with it as well. First apache complained the jserv parameters could not be set twice (JServ option was already included in httpd.conf, so had to remove the duplicate).
    Then I had to remove the / /root Ap directive from the jserv configuration file (known bug with the ifsapachesetup script).
    Then I found out the link had to be http://myhost/ifs/files.
    Next ajp12 came up saying it could not contact port 8001. I installed JDK 1.1.8 at first, which seems to be a nasty wrapper-sort-of version without the tools.jar (??) which are in the wrapper.classpath.
    So I installed JDK 1.3, changed the symbolic link in $ORACLE_HOME/Apache/jdk and now everything seems to work.
    Latest problem in fact WAS related to jdk 1.1.8 (both v1 and v3 didn't work), and although it might not be supported, it works like a dream, just chokes on my memory resources :)

  • Configuring HTTP Apache Server with Oracle Apex

    Hi All,
    I have trawled through various threads on here to see if it would help my resolve the problem i seem to be having, but to no avail :(
    I have an oracle RAC db with apex installed. the RAC uses a service: apextest.com
    I have an HTTP Server installed on a seperate server, I have copied the Images over so it knows what to use. Made sure the httpd.conf file is pointing to the correct images path.
    As its a RAC db, i have put in the dads.conf file a 'TNSFormat' setting for the 'PlsqlDatabaseConnectString', using the TNSnames.ora entry named DEXTER which uses the apextest.com service name.
    My dads.conf file:
    Alias /i/ "/apex/Apache/Apache/images/"
    AddType text/xml       xbl
    AddType text/x-component       htc
    <Location /pls/apex>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure         wwv_flow_file_mgr.process_download
    PlsqlDatabaseConnectString     DEXTER TNSFormat
    PlsqlNLSLanguage               AMERICAN_AMERICA.AL32UTF8
    PlsqlAuthenticationMode        Basic
    SetHandler                     pls_handler
    PlsqlDocumentTablename         wwv_flow_file_objects$
    PlsqlDatabaseUsername          APEX_PUBLIC_USER
    PlsqlDefaultPage               apex
    PlsqlDatabasePassword          apex_pword
    PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
    Allow from all
    </Location>My TNSnames Entry:
    DEXTER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = servername.com)(PORT = 1521))
        (ADDRESS = (PROTOCOL = TCP)(HOST = servername2.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = apextest.com)
      )i can tnsping using the apex_public_user account and correct password and also sqlplus using the same account and password:
    tnsping DEXTER
    sqlplus apex_public_user/apex_pword@DEXTERim getting the error of:
    Service Temporarily Unavailable
    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
    The error log is spitting out -
    mod_plsql: /pls/apex/apex HTTP-503 ORA-12514Does anyone have any ideas? Anything i've missed out / not done ?
    Note: I have used the same HTTP Apache Server to host a version of apex4 on a standalone database which is installed on the same server. So just wondered if that has anything to do with it?
    thanks in advance :)

    Hello,
    According to the error ORA-12514, there is a problem for the mod_plsql to connect to the database :
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action:
    - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    Is the "alias" DEXTER defined in the file tnsnames.ora used by mod_plsql ?
    Regards

  • Web sharing and apache server down

    Hi all
    Sorry for this noobie question but it's the first time I have this strange behavior
    Today I tried to use my MBP (under Lion 10.7.4) outside of my home in a location where web connection was not permitted.
    I thought I could continue to work on my web project which is at the moment on a localhost server.
    But it was impossible as the web sharing was down and it was impossible to relaunch it through preferences panes.
    did I missed something in my Apache config or somewhere else as I am pretty sure that this behavior should be the correct one it should be possible to have the apache server running even if not connected to the web.?
    Obviously once returned at home and reconnected to the web all going back at normal.
    Thanks in advance for your help
    BR
    BKantique

    Finally I found by myself, apparently I my apache server pointed on the port 80 which once disconnected of the web cause to Apache to be down.
    Changed the port into 8080 and then no issue anymore the Apache server still on once disconnected of the web

  • Webtogo with Apache Server

    Hi,
    I've already installed Oracle Webtogo Server on my machine with Apache server.
    My webtogo server runs on 80 port and Apache server on 90 port.
    I would like configuring the webtogo module on the Apache server.
    I've put the following line in apache's httpd.conf's file:
    LoadModule WTG_Module
    OracleHome\webtogo\bin\wtgapach.dll
    <Location /webtogo>
    SetHandler web-to-go
    </Location>
    I've stopped the server and reloaded, but i've gotten this error:
    Loaded DSO <dll's path> use plain Apache 1.3 API, this module might crash under EAPI, please recompile it with -DEAPI.
    I don't understand the meaning of RECOMPILE WITH -DEAPI.
    Best regards,
    Simone
    null

    Hi Guys,
    I didnt check this from past one month, thanks all for your replies
    I found solution for this in metalink
    i.e.
    in context file
    <directory_index oa_var="s_directory_index">index.jsp index.html</directory_index>
    change this to
    <directory_index oa_var="s_directory_index">index.html</directory_index>
    and run autoconfig
    and restart apache server
    Thanks,
    Bhanu Chander

  • How can i create datasource on apache server for ADF application?

    Hi All,
    i my use case i have created simple adf application using ADF BC and want to deploy on Apache server 6.x.
    So my question is that  how can i create Data Source i have goggling and find  two different way to do this.
    1. write following line of code on apache server conf/Context.xml file.
    <Resource name="jdbc/TestDB" auth="Container"
                  type="javax.sql.DataSource"
                   driverClassName="oracle.jdbc.OracleDriver"
                  url="jdbc:oracle:thin:@localhost:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"/>
    but when i have used this way i got following exception.
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
    check link-
    https://forums.oracle.com/thread/2564233
    2. write following line of code apache conf/Server.xml file
    <GlobalNamingResources>
        <!-- Editable user database that can also be used by
             UserDatabaseRealm to authenticate users
        -->
        <Resource name="UserDatabase" auth="Container"
                  type="org.apache.catalina.UserDatabase"
                  description="User database that can be updated and saved"
                  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                  pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/TestDB" auth="Container"
                  type="oracle.jdbc.pool.OracleDataSource"
                  description="User database that can be updated and saved"
                  driverClassName="oracle.jdbc.driver.OracleDriver"
                  factory="oracle.jdbc.pool.OracleDataSourceFactory"
                  url="jdbc:oracle:thin:@//172.31.43.207:1521:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"   />
      </GlobalNamingResources>
    and add this line in context.xml file inside <context> tag
    <ResourceLink global="jdbc/TestDB" name="jdbc/TestDB" type="oracle.jdbc.pool.OracleDataSource"/>
    but when i have run application i have got following error
    log-
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: invalid arguments in call"
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:298)
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:181)
      at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_jsp.java:110)
      at org.apache.jsp.test_jsp._jspService(test_jsp.java:63)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    Aug 2, 2013 5:17:21 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: invalid arguments in call"
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:298)
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:181)
      at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_jsp.java:110)
      at org.apache.jsp.test_jsp._jspService(test_jsp.java:63)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    so what is the solution how to create datasource on apche server which suitable for adf application?
    when i test data source using  following code used 1. way as i mentioned above  its running fine bt not for second.
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <sql:query var="rs" dataSource="jdbc/TestDB">
    select empname from pay_emphdr where empcd='JK1306'
    </sql:query>
    <html>
      <head>
        <title>DB Test</title>
      </head>
      <body>
      <h2>Results</h2>
    <c:forEach var="row" items="${rs.rows}">
        Foo ${row.empname}<br/>
    </c:forEach>
      </body>
    </html>
    please help me. it is very urgent.
    thanks in Advance
    Manish

    Hi Lindalnci
    i have already tried  this tutorial and in my post i have defined first way to do using this procedure.
    in that case i have got following exception as i have mentioned above
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection

Maybe you are looking for