Portal Home > Knowledgebase > Articles Database > Config httpd.conf


Config httpd.conf




Posted by sinus, 08-28-2008, 04:43 PM
Domain1: example1.com username: exampl1 Domain2: example2.com username: exampl2 i wanna every time(((Number2-> example2.com ))) if some one goes through this.from HTTPD.CONF i wanna do something that the reall address goes to this directory>>home/exampl1/public_html/parking (i have already made a folder in ftp in domain1 with the name of parking) and now pay attention the name of username of the domain is number 1. so then every time someone goes through example2.com i wanna redirect it to domain example1.com(i mean parking directory) please assisst me that how can i go about it. Last edited by sinus; 08-28-2008 at 04:51 PM.

Posted by sleddog, 08-28-2008, 05:12 PM
In the VirtualHost configuration for example2.com, set the desired DocumentRoot, e.g., DocumentRoot home/exampl1/public_html/parking

Posted by sinus, 08-28-2008, 06:05 PM
i can do the job but it has written in SSH that do not edit: # DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE US$ p --- please guide me, this is very important for me at this time.

Posted by sinus, 08-28-2008, 07:20 PM
the works seems to be ok and i've done successfully what u i have been told.but now after running PHP file in example2.com it give this: Internal error 500 Last edited by sinus; 08-28-2008 at 07:27 PM. Reason: Dictate Mistake

Posted by @Matt, 08-28-2008, 07:22 PM
Are all your php modules installed for that php page?

Posted by zacharooni, 08-28-2008, 07:42 PM
If you are editing the Apache conf, and you make a change outside of the VirtualHost, just do: /usr/local/cpanel/bin/apache_conf_distiller --update /sbin/service httpd restart

Posted by sinus, 08-29-2008, 04:00 PM
Yes, i edited httpd.conf doument root's and saved... and now enter your command: root@linux [~]# /usr/local/cpanel/bin/apache_conf_distiller --update Distilled successfully and restart apache. But i have still this trouble >> internal error 500 please help me

Posted by sinus, 08-29-2008, 04:21 PM
i dont know.how can i reconize that it is installed or not? when i browse example1.com every thing is ok but on example2.com gives me >> enternal error 5OO

Posted by zacharooni, 08-29-2008, 07:25 PM
tail -f /usr/local/apache/logs/error_log Refresh the page a few times, lemme know what shows up

Posted by stephanhughson, 08-29-2008, 09:21 PM
So, you read this warning, edited the file manually anyway and now it doesn't work? Why not make this change the way you were supposed to do it, through your control panel or whatever method it suggested? To be honest, rather than looking further it would probably be best to contact whoever manages your server, or the authors of your control panel software and ask their advice for getting back on track, then make the changes properly the way they suggest.

Posted by sinus, 08-30-2008, 05:08 AM
i'm the one who manages the server.i did these changes but there was no result.is there any other way to help me through this forum ?

Posted by sinus, 08-30-2008, 05:14 AM
even this doesnt give any resualt else continual errors in SSH: root@linux [/]# tail -f /usr/local/apache/logs/error_log [Sat Aug 30 14:35:29 2008] [error] [client ((IP ADDRESS))] File does not exist: /home/from a user name/public_html/images/Page_rast.gif, referer: http://anotherdomain.com/ [Sat Aug 30 14:35:29 2008] [error] [client ((IP ADDRESS))] File does not exist: /home/from a user name/public_html/404.shtml, referer: http://anotherdomain.com/ [Sat Aug 30 14:35:29 2008] [error] [client ((IP ADDRESS))] File does not exist: /home/from a user name/public_html/images/Header_bg.gif, referer: http://anotherdomain.com/ [Sat Aug 30 14:35:29 2008] [error] [client ((IP ADDRESS))] File does not exist: /home/from a user name/public_html/404.shtml, referer: http://anotherdomain.com/ [Sat Aug 30 14:36:16 2008] [error] [client ((IP ADDRESS))4] File does not exist: /home/from a user name/public_html/images/7px.gif, referer: http://anotherdomain.com/ [Sat Aug 30 14:36:16 2008] [error] [client ((IP ADDRESS))] File does not exist: /home/from a user name/public_html/404.shtml, referer: http://anotherdomain.com/ [Sat Aug 30 14:36:18 2008] [error] [client ((IP ADDRESS))] File does not exist: /home/from a user name/public_html/images/Page_chap.gif, referer: http://anotherdomain.com/ [Sat Aug 30 14:36:18 2008] [error] [client ((IP ADDRESS))] File does not exist: /home/from a user name/public_html/404.shtml, referer: http://anotherdomain.com/ [Sat Aug 30 14:37:28 2008] [error] [client ((IP ADDRESS))5] File does not exist: /home/from a user name/public_html/favicon.ico Please help me...

Posted by stephanhughson, 08-30-2008, 05:53 AM
Ok. I think you need to get back to a standard configuration first. Goto the file and put it back exactly how it was before you made any changes - just reverse what you did. If you made a backup before editing the file (which hopefully you did), use that. Then restart/reload Apache. Now you should be back to normal. Now you can login to the control panel and make the changes you need and everything should be fine. If you are using cpanel, I believe there is a command you can use to completely rebuild the Apache configuration file, you could use that if it comes down to it, but it's a bit drastic, you can probably just reverse the changes you made - as long as you remember what you did.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Questions (Views: 639)
PostgreSQL Issues (Views: 627)

Language: