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?
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?
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:
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.
[list=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.
Create 2 NS records using ns1.example.com and ns2.example.com as the target.
Register your 2 nameservers with example.com's registrar as actual nameservers.
Change the 2 DNS servers listed in Server Setup so your new ones will be used for all future domains
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.
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.
[/list]
Chris
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.