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)

Similar Messages

  • How to get file from server while click on link

    Hi,
    i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
    following is the Destination url that i gave for the item.
    /u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
    please tell me how to get file from server while click on link.

    Ok I got your requirement now.
    If you are getting file names from view attribute then you should not be adding destination URI property for the link.
    Instead you can use OADataBoundValueViewObject API.
    Try below code in your controller processRequest method:
    I am assuming that you are using classic table.
    Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    Regards,
    Sandeep M.

  • How to get the report server name in Forms 10g.

    How to get the report server name in Forms 10g.
    I'm using the Application Server 10g 10.1.2.

    Hello,
    I do not think that you can get this value from anywhere. A solution is to put the Reports server name in an environment variable stored in the /forms/server/default.env file, then to query it at Forms runtime with the TOOL_ENV.Getvar() built-in.
    Francois

  • How to get services which are running currently

    How to get services which are running currently in the system by a java program. And also how to write a service so that i can start/stop the service from the control panel -> services.

    triple post
    http://forum.java.sun.com/thread.jsp?forum=31&thread=364090&start=0&range=15#1532232
    http://forum.java.sun.com/thread.jsp?forum=31&thread=364088&tstart=0&trange=15

  • How to get port of server in component running.

    Hi all,
    How can get information of port no of server in which component working,

    u can get by using sharedObects
    see this
    http://www.techartifact.com/blogs/2013/10/get-intradoc-server-port-in-custom-component-in-webcenter-content-ucm.html

  • Easier way to get an email server running?

    This is probably going to sound noobish and ranty, and I apologize in advance for that, but I really am looking for an answer. Google has not been very helpful so far.
    I currently have a VPS which I use for misc stuff, including hosting some websites. I would like to get email working, so that I can send/receive email on my website domains (via gmail or clients, not webmail).
    I have read through several forum posts and various articles regarding email servers using postfix, dovecot, mysql, etc. Most tutorials on getting an email server setup contain walls of configuration settings that you need to make. They use separate programs for sending email, receiving email, full-blown databases for user accounts... It feels severely over-engineered, and I feel like my head is going to explode while trying to understand what the heck is going on.
    Is there really no easier way to do this? People in forums talk about postfix being the best and easiest there is, but a wall of configuration text that doesn't make sense doesn't seem easy to me. Yeah I could probably copy/paste that text into my configuration files, and yeah it'd probably work, but I wouldn't understand how or why it worked, and I wouldn't be able to make future changes.
    I would think that there would be a single package out there, a single program, that you could handle everything email (at least as far as sending/receiving email via IMAP). Kind of like how you have a web server like Apache or Nginx, where it's a single program that works out of the box, and can be configured further afterwards. Why does email have to be so difficult? I can only assume that things are setup this way in order to cover every possible configuration of email services that anyone could possibly want on any scale. But I just want a simple email server, on a single server, with just a few common options. Are there any alternatives, or is postfix+dovecot+mysql+spamd+opendkim really the only real option on linux right now?
    (And before anyone says to develop something myself... yeah, it's tempting... but why spend time reinventing the wheel if it's already out there, right?)

    A "web server" is rarely just Apache (or nginx, lighttpd etc) on it's own. There's often additional tools such as PHP, MySQL etc as well.
    A "mail server" is the same; an encompassing term for a collection of tools that each handle different aspects. Postfix and Dovecot is all you need for what you've described; Postfix handles mail delivery (inbound mail to your users, and outbound mail from your users) while Dovecot handles presenting the received mail to your users. IMHO, it follows the Unix philosophy very well; one tool, one job. (All working together).
    Postfix might seem daunting, but it is actually very well documented, inside the configuration file itself (main.cf) and on the website. This page may be a good place to start: http://www.postfix.org/STANDARD_CONFIGU … EADME.html
    I'd suggest get Postfix working delivering inbound and outbound mail, then you can add Dovecot (or IMAP daemon of your choice) once that's up and running.

  • How to get orchestration instance server name

    I have two server where orchestration can run...I need to know the server name where my orchestration instance has run.
    How to get this information...

    When you have more than one BizTalk-processing server and if your orchestration is bound to host instance which exist in more than one server (generally for better resilience, the best practice
    is to have multiple instances of host in different servers), the idea of get the server name where Orchestration instance has run is INVALID.
    With the BizTalk features like scalability, resilience and persistence points an Orchestration instance could run in more than one server.
    For example due to persistence points, if that BizTalk server were to suffer a power outage, another BizTalk server could continue the orchestration from the checkpoint rather than having
    to start the orchestration from the beginning. Or during or during long-running process while waiting for a response, then message being consumed by an orchestration instance would be persisting the in-memory representation of an orchestration (to its last
    good state) and any associated messages in BizTalk MessageBox. So when the response comes back the rest of the part of orchestration could execute from other server instance. So an orchestration would not always run from one server.
    But if you have specific “Expression shape” which you may have been using for logging/tracing then you can get the server name which executed that particular “Expression shape” from an Orchestration
    instance (not the whole Orchestration instance). This is done using the standard .NET code to get the server name -
    System.Environment.MachineName
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How to get DEV Integration Server into Prod SLD?

    Hello,
    in a two-tier landscape I need to define transport targets in SLD. Both PI syetems have their own SLD. In each SLD there is just the Integration server of the corresponding PI system. How to get the DEV Integration Server into PROD sld? Manually?
    Thanks,
    CHRISTOPH

    Hello Seshagiri,
    that is what I wanted to know. So there seem to be two possibilities:
    - Creating the DEV Integration Server in productive SLD manually
    - Exporting the DEV Integration Server from DEV SLD and import it into productive SLD.
    I tried importing / exporting SLD content some time ago. AFAIK there is no exporting single technical / business systems, you can just export all the content together from a SLD?
    Thanks,
    Christoph

  • How to get the Weblogic Server Id from within java code

    I would like to log which server (among a cluster) a certain job is running on. Is there a way to get the server id from within Java code (this code is in a session bean if that is relevant.)
    By server id I mean the "Name" column in the summary of servers on the weblogic console.
    Thanks,
    ken

    Use the two entries close to the bottom of the page: "list WebLogic
    MBeans:listMBeans.jsp
    display MBean attributes and operations:showMBean.jsp"
    Nils
    Anatoly wrote:
    >
    Cameron,
    That page has these items on it:
    which one do you think helps with my issue?
    Misc WebLogic examples
    LongRunningTask
    Execute tasks in parallel using WebLogic Execute Threads
    Weblogic stats (5.1)
    Reload Servlet(s) programmatically (5.1)
    Network classload from WebLogic:using reflection,or the launcher
    Weblogic 5.1 debugging properties
    Seppuku pattern readme
    Using dynamic proxies to intercept EJB invocations (6.1)
    list WebLogic MBeans:listMBeans.jsp
    display MBean attributes and operations:showMBean
    Thanks to Marcelo Caldas for filter by type option and nice UI!
    Using com.sun.jdmk.comm.HtmlAdaptorServer with WebLogic 6.1
    Cool
    EJBGen
    Dimitri
    back
    "Cameron Purdy" <[email protected]> wrote in message news:<3c7a745d$[email protected]>...
    JMX ... see http://dima.dhs.org/misc/ for some info on JMX in Weblogic.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Anatoly" <[email protected]> wrote in message
    news:[email protected]..
    Does anyone know who to get the managing server URL's port
    from within the EJB code running on Weblogic 6.1?
    The URL port is not default (not 7001), but when creating
    initial context, I am not specifying the URL in properties.
    Due to that, trying to the the PROVIDER_URL property from
    environment does not return anything.
    Appreciate any responses.
    -Anatoly
    ============================
    [email protected]

  • How to get updated value at run time in oracle forms

    How to get updated value form oracle database on a field in oracle forms 6.0 at run time if the same form is opened by multiple users and both have get the same maximum value if one commit the record then how other would get that maximum value with out exiting that form...

    This issue is fairly common and Forms handles the situation by displaying the error, "Record has been updated by another user. Requery to see changes." if a user tries to update a record that was updated by another user.
    If your data is in a base table block, you can check before you save by checking the value in the form against the database using the Get_Item_Property('<BLOCK.ITEM>',DATABASE_VALUE). You can compare the value returned by the built-in against the value in the field to see if they have changed. This could be a lot of work and a lot of network traffic if you are checking numerous items in your data block. Forms has a standard locking mechanism that will lock the queried record as soon as a user makes any changes. If another user queries and attempts to change the record locked by another user - they will receive a "Record Locked" message.
    Francois brings up a valid point. Perhaps you should review the link Francios provided as well as this one: How to ask questions the smart way
    It is always a good idea to review your thread before you post it and ask yourself, "Could I answer this question given the information I've provided and the way I've asked the question?"
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to get into SQL Server - Installation done through DPM tool. DO not have SA password.

    HI Every one,
      Hope you guys having wonderful Friday. 
    well I have some weird situation so don't know some one can help me here .
    in Past some one has Installed SQL Server when installing  Microsoft DPM  ( Data Protection Manager) tool. that time person didn't added  any other AD group during installation. and do not have SA password either. 
    I have password under which SQL Server running but I am not able to login into SQL severer under that account. 
    what are the other ways to Log in into SQL?
    Thanks

    Hello,
    Please try the following and let us know:
    1. Open CMD with elevated privilages
    2. Type as below
    SQLCMD –S <Server_Name\Instance_Name>
    go
    CREATE LOGIN ‘<Login_Name>’ with PASSWORD=’<Password>’
    go
    SP_ADDSRVROLEMEMBER '<Login_Name>','SYSADMIN'
    go
    Now the login is added as SA. Login and reset the accounts required.
    Reference:
    ===================
    http://www.wikihow.com/Reset-SA-Password-in-Sql-Server
    http://blogs.technet.com/b/canitpro/archive/2012/11/26/the-sql-guy-post-30-how-to-recover-from-a-lost-sa-password-in-sql-server-2012.aspx
    Regards, Pradyothana DP. Please Mark This As Answer if it solved your issue. Please Mark This As Helpful if it helps to solve your issue. ========================================================== http://www.dbainhouse.blogspot.in/

  • Actions sent through OAM - how to receive in apache server?

    Hi,
    From OAM we want to send values through custom type called propertytype (instead of headervar and cookie). We configured that in OAM, but apache server and the custom TAI connector which we developed for websphere is not able to recognize it? Custom TAI connector is just for receivinig the data sent, and apache server we are using as a webgate.
    Can you please help me out how to resolve this issue?
    Thank you,
    Regards,
    Prashant

    Hi Prashant,
    The data is sent by the access server and interpreted by its clients as appropriate. The webgate, which is one such client, basically needs to work within the confines of HTTP and thus is not even looking for custom action types. In the custom TAI connector are you making ASDK calls? If so, look at the method "+java.util.Hashtable      getActions(java.lang.String actionType)+" in the class com.oblix.access.ObUserSession. That method, called after isAuthenticated/isAuthorized as the case may be, will retrieve the custom action sent back by the access server.
    -Vinod

  • New Computer..how to get Ipod up and running

    my old computer broke down and I have a new one. No access to old computer. How do I get my ipod up and running with new comp? I get a message saying my ipod is synched with another computer (the broken one)?

    Synching to the new computer will wipe everything off the iPod.
    If you have it enabled for disk use, mount it as a drive then copy off all of the hidden folders into your new iTunes. The hidden files will have nonsense names, but all the music is there, and iTunes will rename everything if you have it set to copy to your new library.
    Otherwise, try these links from another thread (thanks PT):
    *Copying from iPod to Computer threads...*
    http://discussions.apple.com/thread.jspa?threadID=1534227&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=893334&tstart=0
    http://discussions.apple.com/thread.jspa?messageID=797432&#797432
    *Also these useful internet articles...*
    http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/
    http://www.engadget.com/2004/11/02/how-to-get-music-off-your-ipod/
    http://playlistmag.com/secrets/2006/12/twowaystreet20/index.php
    http://playlistmag.com/help/2005/01/2waystreet/

  • How to get Adobe up and running?

    This download then go back and sign some agreement is stupid and it is not evident that there is anything to sign. I have clicked on agree several times and am still unable to get it to work. This is a Macbook Pro computer and I'm tired of not being able torun PDF's. Please help me get this up and running. there has to be a better way to go about this. Michael Allison

    Not sure what you mean by "sign agreement"; do you mean accept the license agreement?  To do that you must open Reader by itself and accept the EULA, before you can use it online.
    If I misunderstood, please clarify.

  • How to get list of VMs running under SCVMM using SCORCH activities

    hello,
    I am in learning phase on SCORCH...I wants to know steps required to get list of VMs running under SCVMM using SCORCH activities.
    Thanks
    Richa KM

    Hi,
    Here is  a list of activities:
    System Center Virtual Machine Manager Activities
    Integration Packs for System Center 2012 - Orchestrator
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

Maybe you are looking for