![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2005
Location: Downtown Toronto
Posts: 21
Rep Power: 0
![]() |
Putting content on Apache Server
Hi,
Just joined your forum recently. I installed an apache server on my cpu and it works. So I put the content in the root folder. If I register a URL, how do I know what to set the nameservers to? Instead of http://localhost, is there another way I can see the root folder's documents in my browser - like do I just use my IP address? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() ![]() |
yes. you can type http://127.0.0.1 (same as localhost). or put your IP from the ('ipconfig / ifconfig') command in there... all of that will work. You point the nameservers to your static ip that is referenced in the ipconfig/ifconfig utility. May want to register a domain name also.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#3 |
|
Professional Programmer
|
You should get no-ip. http://no-ip.com . It's a name resolution service; it gives you a static URL to your potentially dynamic IP.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() ![]() |
That's true, and probably a good idea if its a "personal" website.
http://business_name.no-ip.com doesn't sound to professional.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Oct 2005
Location: Downtown Toronto
Posts: 21
Rep Power: 0
![]() |
How do I know if my ip is static or dynamic? And which is better?
Sorry, i'm a bit of a noob when it comes to the back-end stuff. |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Oct 2005
Location: Downtown Toronto
Posts: 21
Rep Power: 0
![]() |
I find the apache site tutorials kind of unhelpful. Is there a site any1 knows of with better tutorials?
|
|
|
|
|
|
#7 | |||
|
Professional Programmer
|
Quote:
Another way that you can tell is go to http://whatsmyip.com/ and write than series of numbers down. Then shutdown your modem for about 5 minutes. Then turn your modem back on and go back to http://whatsmyip.com/ and if the IP is different, you have a modem that leases a dynamic IP. In general, Dial-Up is static unless you choose a different location to dial to; DSL is dynamic; Cable is either-or, usually dynamic in my experiences. Also, there's not really a better or worse situation with dynamic versus static IPs; it depends on what you need connection for. If you're hosting an *actual* site, static is much better, though any name resolution service will still take a dynamic IP and make a static URL. Quote:
Quote:
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;} |
|||
|
|
|
|
|
#8 |
|
Newbie
Join Date: Oct 2005
Location: Downtown Toronto
Posts: 21
Rep Power: 0
![]() |
Thanks, that helps a lot. Seems like I got it going, now I just need to register a name etc. etc.
|
|
|
|
|
|
#9 |
|
Newbie
Join Date: Oct 2005
Location: Downtown Toronto
Posts: 21
Rep Power: 0
![]() |
Ok, so I figured out my IP is static, but the problem is that I have my cpu connect to four other cpu's in a LAN. This makes my IP switch by a few digits if I switch it off. So its partially static.
If I want to host an actual site, what's the solution here? Do I just point the url to my ip and never turn off my pc hoping that it will stay the same? Is there a way to configure my network so that my ip stays the same? |
|
|
|
|
|
#10 |
|
Programming Guru
![]() ![]() ![]() |
never heard of a static ip changing... but.. you can connect to your router on your LAN and port forward PORT 80 (HTTPD) to a specific machine name.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|