Can not connect to Virtual Server with domain name.

This was a long drawn out process. First I was creating the Virtual Servers within Webmin, I did a lot of work to get the php to work i those, but I did it. Then I went to try to set up the email accounts and all of them regardless of domain were showing up as user@webmin.domain.com and I couldn't receieve mail to the actual user@domain.com. So I decided to just create a Virtual Server within Virtualmin and that worked for the email. I am not able to receive email to the user@domain.com, but with the settings that Virtualmin put into my httpd.conf file I was unable to connect to the site files. So I made changes to that information and here is my current issue.

If I navigate to www.domain.com I get a Forbidden You don't have permission to access / on this server. error. But if I type in www.domain.com/index.php or www.domain.com/index.html the page will show up but those are missing the css and javascript because "Resource interpreted as Script but transferred with MIME type text/html: " But if I go to say www.domain.com/read.php which uses the same css and js files the page will load exactly as it should.

I tried setting the DirectoryIndex to just index.php and that doesn't work. I've searched for over 10 hours trying to find someone else with the same issue and I've made changes to my httpd.conf file that I don't even know what it should look like anymore. (Just making changes to the VirtualHost section)

Please let me know what information you need from me to help me fix this.

CentOS 6 on VPS Virtualmin/Webmin/Usermin Apache

Status: 
Active

Comments

Howdy -- we're sorry to hear you're having trouble with Virtualmin! However, since you appear to be using Virtualmin GPL, you'd want to use the Forums for obtaining support, rather than this area, which is for Virtualmin Pro customers.

We monitor the Forums, along with lots of wonderful folks in the community!

When creating a new Forum post, be sure to let us know what distro and version you're using (that information isn't automatically displayed in the Forums, the way it is here).

Also, if you could include the "VirtualHost" section of your Apache config (in /etc/httpd/conf/httpd.conf) for one of the domain's you're having problems with, that would help in the troubleshooting process.

Lastly, let us know if you're using any third party software repositories -- you can determine that by running this command:

ls /etc/yum.repos.d

Thanks!