LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   web server file (https://www.linuxquestions.org/questions/linux-newbie-8/web-server-file-451991/)

Ameii83 06-06-2006 12:34 AM

web server file
 
where i should setup my html file in linux webserver?.For your information..i have already install the apache server in the machine..

LzW-x 06-06-2006 12:44 AM

try /var/www/html

Ameii83 06-06-2006 04:54 AM

let me give some situation..i want to create e.g www.xstyle.com..so in the html folder, is it i have to create one folder that call xstyle.com ?

timmeke 06-06-2006 05:14 AM

If you want a domain on the internet, you'll need to do a lot more than just create one directory.
For instance:
-register domain (ie pay for it)
-set up apache (httpd.conf file should mention your "domain", ie xstyle.com)
-possibly set up DNS if needed
-...
I doubt that the directory name will make much difference.

LzW-x 06-06-2006 05:02 PM

I checked out the domain...

It looks like you domain registrar stuck you with their DNS which is one of them fake search engines...

DNS Servers: A.NS.ULTSEARCH.COM B.NS.ULTSEARCH.COM

It even looks like a real web site but when you click stuff, you just get sponsored search results so right now your web site is making money for someone else and they may even charge you for this hosted DNS service!!!

If you want your own server so you can escape some of these pitfalls, you should run DNS to and that means a steeper learning curve! Also some ISP's may not propigate your dns upstream! Hell, most even forbid running servers... You might need business class DSL or something. (But I'm assuming things you've not said)

Linux has, or did have BIND for DNS (Berkley Internet Name Deamon) That and Apache can be configured through .conf files you'll find... Some distro's should also include GUI utilities so you don't have to manually edit files!

I think start by trying to get your IP address to display the apache test page located on your computer! Then you can build a web site and transfer the DNS. Some have online control panels, some you may have to call...

It might be hard even with an online control panel because it will want you to type in 2 DNS servers and check if they resolve... If they don't have a dns record for your computer, how will it resolve?

You may have to call anyway and tell them "I need you to create the records dns1.xstyle.com & dns2.xstyle.com"

How you get 2 dns thinks on the same computer is simply by having 2 ethernet cards with different IP addresses!

Your domain can work fine but perfection will require more work... Both DNS servers on the same subnet? Can't do much about if you only have 1 computer! Reverse DNS is not required but will help to ensure the emails comming from your domain don't get filtered and stuff! Your upstream provider provider probably controls reverse DNS so you need to have them delagate it downstream to your dns server!

Once everthing is good to go, all you pay for are your domain name renewal fees, internet connection, and electric bill to run the thing! If you do get to run your own DNS, you get to have all of the subdomains you want! Each one only requires a DNS record, nothing else! You could have like admin.xstyle.com, images.xstyle.com, me.xstyle.com, microsoft.com.xstyle.com (LOL) and they can be on any computer anywhere because IP address is part of the dns record!


All times are GMT -5. The time now is 07:45 AM.