D
D
Dmitry Ti2014-06-20 16:10:56
PHP
Dmitry Ti, 2014-06-20 16:10:56

How to insert an index.html page into a frame?

1) Is it possible to forward a laptop with Apache through a router?
I configured it like forwarding on the router how to configure Apache now (ip and change port 80 to 8080 or another)
2) The first part was solved in principle. Now we complicate the task - instead of apache there will be server.js on node.
Everything works the same, ok. Here is a link to the index file
, how can I insert this page into a frame:

<html >
   <frameset rows="65%,35%">
  <frameset frameborder="0" cols="50%,50%">
     <frame src="???????????" - CЮДЫ!!!! и чтобы не поламалось это все
   name="leftFrame" scrolling="yes" noresize />
     <frame src="http://81.31.87.96:8080"
   name="middleFrame" scrolling="yes" noresize />
        </frameset>
    <frameset rows="100%">
     <frame marginwidth="300" src="http://81.31.87.96:8080" name="leftFrame" scrolling="no" noresize />
    
        </frameset>
</html>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cool Admin, 2014-06-20
@ifaustrue

On the router, forward the external port to a specific internal port, the one on which you are running Apache. And that's it. =)

I
Ivan Soshnikov, 2014-06-20
@soshnikov

On the router in DHCP, add the laptop to the reservation - indicate that the laptop should always receive the same IP. Some models of routers allow you to do this simply, some require you to manually drive in the MAC address of the network card.
It is necessary to ensure that the address of the laptop does not change. If your laptop address is specified manually, then this step is not required. But a statically assigned address is bad and a good way to step on a rake.
Then forward the port. This is usually the Virtual Setver section. In this case, you can specify the external port to which the request arrives and the internal port to which the request is forwarded.
In the settings of Apache, set the port on which Apache listens. Globally or for a separate virtual host - at your discretion. In this case, the internal port for Virtual Server in the router settings must match the port on which Apache listens.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question