jollymon

Member
Aug 28, 2006
22
0
151
Okay so I was messing around, you know getting all the stupidity outta the way first before I have any real domains on my server. SO I had a problem that going to http://www.acidhosts.com took me to the cpanel "no index file green blob warning page" HOWEVER going to http://acidhosts.com took me to the intended /home/acidhost/public_html/ location. So resolved the problem was in my httpd.conf file I started out editing it........ It is now totally messed up, does not work. EITHER THAT or My apache is actually NOT running despite the nice green light (I don't trust that light)


</IfDefine>


NameVirtualHost 72.36.193.82:80


<VirtualHost 72.36.193.82>
BytesLog domlogs/82.193.36.72.reverse.layeredtech.com-bytes_log
ServerName www.acidhosts.com
DocumentRoot /home/acidhost/public_html
</VirtualHost>


<Location /whm-server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
ExtendedStatus On

ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml
ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
Alias /sys_cpanel/ /usr/local/cpanel/sys_cpanel/
Alias /java-sys/ /usr/local/cpanel/java-sys/
Alias /img-sys/ /usr/local/cpanel/img-sys/
Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/
Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/
ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /controlpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/sredirect.cgi
Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/
Alias /interchange-5/ /usr/local/cpanel/3rdparty/interchange/share/interchange-5/


<VirtualHost 72.36.193.82>
ServerAlias acidhosts.com
ServerAdmin [email protected]
DocumentRoot /home/acidhost/public_html
BytesLog domlogs/acidhosts.com-bytes_log
ServerName www.acidhosts.com

User acidhost
Group acidhost
CustomLog /usr/local/apache/domlogs/acidhosts.com combined
ScriptAlias /cgi-bin/ /home/acidhost/public_html/cgi-bin/
</VirtualHost>


<VirtualHost 72.36.193.82>
BytesLog domlogs/host.acidhosts.com-bytes_log
ServerName host.acidhosts.com
DocumentRoot /usr/local/apache/htdocs
</VirtualHost>


<VirtualHost 72.36.193.82>
ServerAlias fearmaps.com
ServerAdmin [email protected]
DocumentRoot /home/fearmaps/public_html
BytesLog domlogs/fearmaps.com-bytes_log
ServerName www.fearmaps.com

User fearmaps
Group fearmaps
CustomLog /usr/local/apache/domlogs/fearmaps.com combined
ScriptAlias /cgi-bin/ /home/fearmaps/public_html/cgi-bin/
</VirtualHost>


<VirtualHost 72.36.193.82>
ServerAlias bluehillsantiques.com
ServerAdmin [email protected]
DocumentRoot /home/bluehill/public_html
BytesLog domlogs/bluehillsantiques.com-bytes_log
ServerName www.bluehillsantiques.com

User bluehill
Group bluehill
CustomLog /usr/local/apache/domlogs/bluehillsantiques.com combined
ScriptAlias /cgi-bin/ /home/bluehill/public_html/cgi-bin/
</VirtualHost>


THIS is what is reported from querying around with httpd

root@host [/]# /etc/rc.d/init.d/httpd status

Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost/server-status
root@host [/]# /etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd stop: httpd (no pid file) not running
root@host [/]# /etc/rc.d/init.d/httpd start
httpd: bad user name acidhost
/etc/rc.d/init.d/httpd start: httpd could not be started
root@host [/]#
 
Last edited:

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
Use the backup category and rollback your conf file to where it wasnt broken.

Or you can try repairing it.

/scripts/rebuildhttpdconf
 

jollymon

Member
Aug 28, 2006
22
0
151
Excellent ideas, however I did not do either of them. (I would have except I was editing away stuff) But I got it to working, kinda.... here is what I did. I deleted the acidhost account, then removed it in ssh from /etc/group and /etc/passwd Okay then I edited my httpd.conf to this.....

Code:
NameVirtualHost 72.36.193.82:80


<VirtualHost 72.36.193.82>
BytesLog domlogs/82.193.36.72.reverse.layeredtech.com-bytes_log
ServerName www.acidhosts.com
DocumentRoot /usr/local/apache/htdocs
</VirtualHost>


<Location /whm-server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>
ExtendedStatus On

ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml
ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
Alias /sys_cpanel/ /usr/local/cpanel/sys_cpanel/
Alias /java-sys/ /usr/local/cpanel/java-sys/
Alias /img-sys/ /usr/local/cpanel/img-sys/
Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/
Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/
ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /controlpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/sredirect.cgi
Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/
Alias /interchange-5/ /usr/local/cpanel/3rdparty/interchange/share/interchange-5/

<VirtualHost 72.36.193.82>
ServerAlias fearmaps.com
ServerAdmin [email protected]
DocumentRoot /home/fearmaps/public_html
BytesLog domlogs/fearmaps.com-bytes_log
ServerName www.fearmaps.com

User fearmaps
Group fearmaps
CustomLog /usr/local/apache/domlogs/fearmaps.com combined
ScriptAlias /cgi-bin/ /home/fearmaps/public_html/cgi-bin/
</VirtualHost>


<VirtualHost 72.36.193.82>
ServerAlias bluehillsantiques.com
ServerAdmin [email protected]
DocumentRoot /home/bluehill/public_html
BytesLog domlogs/bluehillsantiques.com-bytes_log
ServerName www.bluehillsantiques.com

User bluehill
Group bluehill
CustomLog /usr/local/apache/domlogs/bluehillsantiques.com combined
ScriptAlias /cgi-bin/ /home/bluehill/public_html/cgi-bin/
</VirtualHost>



<VirtualHost 72.36.193.82> 
ServerAlias acidhost.com
ServerAdmin [email protected]
DocumentRoot /home/acidhost/public_html
BytesLog domlogs/acidhost.com-bytes_log
ServerName www.acidhost.com

User acidhost
Group acidhost
CustomLog /usr/local/apache/domlogs/acidhost.com combined
ScriptAlias /cgi-bin/ /home/acidhost/public_html/cgi-bin/
</VirtualHost>
Then readded the account.
So The server now runs from /etc/rc.d/init.d/httpd just fine.

~THE REMAINING PROBLEM~

When you go to either http://www.acidhosts.com it still seems to be taking me to the

/usr/local/apache/htdocs directory, On the plus side for some reason http://acidhosts.com appears to shoot off into some unknown realm...........
I am sure this problem is in my httpd.conf file, which has yet to yield the desired results for me.
 
Last edited: