can't access anything outside of index.html from public_html/

Did you set that domain up through DirectAdmin?
It looks like you modified the virtualhost in the httpd.conf file and it's loading out of apache's default directory (/var/www/html/)
 
jmstacey said:
Did you set that domain up through DirectAdmin?
It looks like you modified the virtualhost in the httpd.conf file and it's loading out of apache's default directory (/var/www/html/)
DocumentRoot /home/third/domains/third-core.org/public_html
ScriptAlias /cgi-bin/ /home/third/domains/third-core.org/public_html/cgi-bin/

I believe it's pointed to the right place, and the files are certainly there, but I can't find them. Should I copy/paste my entire httpd.conf file here or is there a specific part you want?
 
Did you restart apache after making those changes?

Edit: There are also 3 places where you need to change the DocumentRoot setting I think
 
Last edited:
jmstacey said:
Did you restart apache after making those changes?

Edit: There are also 3 places where you need to change the DocumentRoot setting I think
# Auto generated apache config file by DirectAdmin version 1.24.0
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to his/her website

# Frontpage requires these parameters in every httpd.conf file or else
# it won't work.
Port 80
ServerRoot /etc/httpd


<VirtualHost 64.92.173.98:80>


ServerName www.third-core.org
ServerAlias www.third-core.org third-core.org
ServerAdmin [email protected]
DocumentRoot /home/third/domains/third-core.org/public_html
ScriptAlias /cgi-bin/ /home/third/domains/third-core.org/public_html/cgi-bin/

UseCanonicalName OFF

User third
Group third
CustomLog /var/log/httpd/domains/third-core.org.bytes bytes
CustomLog /var/log/httpd/domains/third-core.org.log combined
ErrorLog /var/log/httpd/domains/third-core.org.error.log

<Directory /home/third/domains/third-core.org/public_html>
Options +Includes -Indexes
php_admin_flag engine ON
php_admin_flag safe_mode OFF
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
</Directory>



#php_admin_value open_basedir /home/third/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/

</VirtualHost>


<VirtualHost 64.92.173.98:443>

SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key


ServerName www.third-core.org
ServerAlias www.third-core.org third-core.org
ServerAdmin [email protected]
DocumentRoot /home/third/domains/third-core.org/private_html
ScriptAlias /cgi-bin/ /home/third/domains/third-core.org/public_html/cgi-bin/

UseCanonicalName OFF

User third
Group third
CustomLog /var/log/httpd/domains/third-core.org.bytes bytes
CustomLog /var/log/httpd/domains/third-core.org.log combined
ErrorLog /var/log/httpd/domains/third-core.org.error.log

<Directory /home/third/domains/third-core.org/private_html>
Options +Includes -Indexes
php_admin_flag engine ON
php_admin_flag safe_mode OFF
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
</Directory>



#php_admin_value open_basedir /home/third/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/

</VirtualHost>

Does this look correct?
 
It looks alright from here however that is not the default index.html page, so unless you changed it it's getting it from somewhere else.
Is the above httpd.conf file being included in the master httpd.conf ?
Did you try restarting apache?
 
jmstacey said:
It looks alright from here however that is not the default index.html page, so unless you changed it it's getting it from somewhere else.
Is the above httpd.conf file being included in the master httpd.conf ?
Did you try restarting apache?
actually I did, and it completely messed it up. Now I'm back to zero.

edited..
 
Last edited:
Try deleting the domain and then readding it.

Also, maybe the steps that you followed.
I can take a look if you'd like, just PM me.
 
jmstacey said:
Try deleting the domain and then readding it.

Also, maybe the steps that you followed.
I can take a look if you'd like, just PM me.
thanks for the offer; I may take it up. I have deleted a couple of things, and my host has recommended I just transfer everything manually. Thankfully, I didn't have much at all. ;-)

It's working out, Praise the Lord! I don't relish the idea of paying $25+ an hour for restoration, so I'm glad it's working out.
 
Back
Top