7390 web hosting

peppedp

Neuer User
Mitglied seit
16 Nov 2013
Beiträge
11
Punkte für Reaktionen
0
Punkte
0
Hi guys!
I have this need: to make a small website and host it in my usb on 7390 modified with freetz. I just ask you for some advices, so let me know if these steps are right or wrong!
1) First of all I think I need to assign a IP address to my usb. Can I use this command "ifconfig eth0:1 192.168.yy.yy netmask 255.255.255.0 up" and append it to debug.cfg?

2) I need to open port 80 forwarding to this IP address, but I bet that I'll get an error, because port 80 is already in use by MyFritz… any solution? Can I use another port to access directly to my site? (I registered a dyndns address and configured my 7390 about it)

3) Have I to configure busybox anyway?

Sorry if you find silly my dubts :confused:
Thank you
Giuseppe
 
Hello

1) I think its better to use lan:1 for your action: ifconfig lan:1 192.168.1.1 up
Dont use lan:0 thats the rescue IP and multid reseting it from time to time.

2) After assigning lan:1 IP you are able to make a forwarding rule for external port 80.
Keep in mind you reach the AVM Webinterface with this IP localy too.
You can assign port 80 (for internet) but the webserver has to run on a different portnumber (internally).

3) Yes you should. Create httpd.conf and start busybox httpd in this way:
rc.httpd
Code:
#! /bin/sh

BINARY='/var/media/NEW_LINK/httpd'
CONFIG='-c /var/media/NEW_LINK/httpd.conf'
PORT='-p 801'
UGID='-u 0:0'
REALM='-r http_webserver'

$BINARY $CONFIG $PORT $UGID $REALM
...for httpd.conf look here: httpd.conf
If you need a better busybox for MIPS/MIPSEL look for it here: fritzmod.net or here.
You can give php-cgi a try. Look for it at fritzmod.net too.

sorry for my lagging english

have fun ;)
 
Zuletzt bearbeitet:
Hello

1) I think its better to use lan:1 for your action: ifconfig lan:1 192.168.1.1 up
Dont use lan:0 thats the rescue IP and multid reseting it from time to time.

My Firtz IP address is 192.168.178.1, have I use this address, right?

2) After assigning lan:1 IP you are able to make a forwarding rule for external port 80.
Keep in mind you reach the AVM Webinterface with this IP localy too.
You can assign port 80 (for internet) but the webserver has to run on a different portnumber (internally).

How can I assign a different port (internally) to my webserver?


3) Yes you should. Create httpd.conf and start busybox httpd in this way:
rc.httpd
Code:
#! /bin/sh

BINARY='/var/media/NEW_LINK/httpd'
CONFIG='-c /var/media/NEW_LINK/httpd.conf'
PORT='-p 801'
UGID='-u 0:0'
REALM='-r http_webserver'

$BINARY $CONFIG $PORT $UGID $REALM
...for httpd.conf look here: httpd.conf
If you need a better busybox for MIPS/MIPSEL look for it here: fritzmod.net or here.
You can give php-cgi a try. Look for it at fritzmod.net too.

sorry for my lagging english

have fun ;)

Thank you a lot!
 
"My Firtz IP address is 192.168.178.1, have I use this address, right?"
Like shown in 1) you can assign every IP address. Example: ifconfig lan:1 10.1.1.1 up
Because 192.168.178.1 or lan:0 169.254.1.1 are not forwardable. The Fritz!Box dont do it! ;)

"How can I assign a different port (internally) to my webserver?"
Look example 3) the parameter is: -p 801 for local port assign
With example 1) from here your address (local) is: http://10.1.1.1:801
This IP can forwarded to: from 80 at IP 10.1.1.1 at Port 801

regards
 
Zuletzt bearbeitet:
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.