Announcement

Collapse
No announcement yet.

How to get to root and other files?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get to root and other files?

    Ok, this is probably a stupid question and may not have anything to do with InterWorx, but forgive me as I am totally new to Linux and InterWorx.

    Monday I had a Linux box with Webmin setup, that I gave up on, as I needed sites up and running this millenium, so last night it was changed to InterWorx.

    Now all the websites I create don't display, come up with the home page, when just entering http://mydomain.com in a browser, because apparently the "etc/httpd/conf/httpd.conf" file ONLY looks at

    index.html

    But ALL my sites, and hundreds of folders contains

    index.htm


    I do NOT want to rename hundreds of files and relink 2000+ documents, so how do I now edit the above "etc/httpd/conf/httpd.conf" file?

    Since Webmin is gone I can't login using http://111.22.33.100:1000 anymore!

    Also I apparently need to also edit a template that specify the "DirectoryIndex" for each site I setup

    Also SAGONet.com, where I have my box, setup InterWorx "Server Setup" to use sago's name servers.

    However I have registrered two of my ten IP addreses as name servers.

    So do I replace sago's name servers in "Server Setup" or do I need to specify some reverse "stuff" InterWorx? Where and how?


    Thanks

  • #2
    Now all the websites I create don't display, come up with the home page, when just entering http://mydomain.com in a browser, because apparently the "etc/httpd/conf/httpd.conf" file ONLY looks at

    index.html

    But ALL my sites, and hundreds of folders contains

    index.htm


    I do NOT want to rename hundreds of files and relink 2000+ documents, so how do I now edit the above "etc/httpd/conf/httpd.conf" file?

    Since Webmin is gone I can't login using http://111.22.33.100:1000 anymore!

    Also I apparently need to also edit a template that specify the "DirectoryIndex" for each site I setup
    RWF, all you have to do is edit the /etc/httpd/conf/httpd.conf and append "index.htm" to the DirectoryIndex line. Then restart apache using the command:

    Code:
    service httpd restart
    in an ssh session or by using the NodeWorx service manager. This is only needed once and it will affect all previousuly created (and future) sites.

    Also SAGONet.com, where I have my box, setup InterWorx "Server Setup" to use sago's name servers.

    However I have registrered two of my ten IP addreses as name servers.

    So do I replace sago's name servers in "Server Setup" or do I need to specify some reverse "stuff" InterWorx? Where and how?
    If you'd like to use the NodeWorx box as a DNS server you have to do a few things. In the following example I will use example.com. Assume that example.com is hosted on my NodeWorx box and I want to setup ns1.example.com and ns2.example.com as namesevers for example.com and some other sites.
    1. Create 2 A records under example.com's zone for ns1.example.com and ns2.example.com. Make sure you use 2 seperate IPs that are already mapped to your NodeWorx box.
    2. Create 2 NS records using ns1.example.com and ns2.example.com as the target.
    3. Register your 2 nameservers with example.com's registrar as actual nameservers.
    4. Change the 2 DNS servers listed in Server Setup so your new ones will be used for all future domains
    5. Change the DNS servers on all domain records you want to use these new DNS servers for to ns1.example.com and ns2.example.com. Make sure you setup zones for all applicable domains first.
    6. NOTE: reverse DNS *will not work* using your own custom nameservers. You have to use Sago's in this case if you want reverse DNS to work.

    Chris
    Chris Wells
    InterWorx L.L.C. | http://interworx.com
    InterWorx Control Panel

    Comment


    • #3
      Chris,

      thanks a bunch! Especially the stuff on setting up a name server was good.

      How do I get to the NodeWorx service manager to do the "
      service httpd restart"?

      Comment


      • #4
        Just click on 'System Services' on the left menu and then 'Restart' on the web server line.

        Chris
        Chris Wells
        InterWorx L.L.C. | http://interworx.com
        InterWorx Control Panel

        Comment


        • #5
          Thanks

          That worked!

          Comment


          • #6
            There's an easier way to take care of this.

            Just delete the index.html and the 1.gif 2.gif and 3.gif files that Interworx puts in the html folder of each new account. Both index.htm and index.php load fine.

            Tim

            Comment

            Working...
            X