hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Config httpd.conf
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Config httpd.conf

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-28-2008, 04:43 PM
sinus sinus is offline
Junior Guru Wannabe
 
Join Date: Jul 2008
Location: Iran
Posts: 95

Config httpd.conf


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.
Reply With Quote


Sponsored Links
  #2  
Old 08-28-2008, 05:12 PM
sleddog sleddog is offline
Web Hosting Master
 
Join Date: Mar 2005
Location: Labrador, Canada
Posts: 873
In the VirtualHost configuration for example2.com, set the desired DocumentRoot, e.g.,

DocumentRoot home/exampl1/public_html/parking

__________________
sleddog

Reply With Quote
  #3  
Old 08-28-2008, 06:05 PM
sinus sinus is offline
Junior Guru Wannabe
 
Join Date: Jul 2008
Location: Iran
Posts: 95
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.

Reply With Quote
Sponsored Links
  #4  
Old 08-28-2008, 07:20 PM
sinus sinus is offline
Junior Guru Wannabe
 
Join Date: Jul 2008
Location: Iran
Posts: 95
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
Reply With Quote
  #5  
Old 08-28-2008, 07:22 PM
PogiWeb PogiWeb is offline
We need coffee...
 
Join Date: Jan 2003
Location: U.S.A.
Posts: 3,906
Are all your php modules installed for that php page?

__________________
PogiWeb LLC | sales@pogiweb.com | 1-704-464-8238
PogiWeb.com - The best VPS prices around with Instant Setups and Reseller Program!
Simply the best Shared, Reseller, Virtual Private Server and Dedicated Server Hosting Provider around!
Join us on Facebook!


Reply With Quote
  #6  
Old 08-28-2008, 07:42 PM
zacharooni zacharooni is offline
Community Guide
 
Join Date: Apr 2005
Posts: 1,214
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

Reply With Quote
  #7  
Old 08-29-2008, 04:00 PM
sinus sinus is offline
Junior Guru Wannabe
 
Join Date: Jul 2008
Location: Iran
Posts: 95
Quote:
Originally Posted by zacharooni View Post
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
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

Reply With Quote
  #8  
Old 08-29-2008, 04:21 PM
sinus sinus is offline
Junior Guru Wannabe
 
Join Date: Jul 2008
Location: Iran
Posts: 95
Unhappy

Quote:
Originally Posted by zacharooni View Post
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
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

Reply With Quote
  #9  
Old 08-29-2008, 07:25 PM
zacharooni zacharooni is offline
Community Guide
 
Join Date: Apr 2005
Posts: 1,214
tail -f /usr/local/apache/logs/error_log
Refresh the page a few times, lemme know what shows up

Reply With Quote
  #10  
Old 08-29-2008, 09:21 PM
stephanhughson stephanhughson is offline
Web Hosting Guru
 
Join Date: Jan 2006
Posts: 268
Quote:
Originally Posted by sinus View Post
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$
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.

__________________
www.fishycam.com

Reply With Quote
  #11  
Old 08-30-2008, 05:08 AM
sinus sinus is offline
Junior Guru Wannabe
 
Join Date: Jul 2008
Location: Iran
Posts: 95
Unhappy

Quote:
Originally Posted by stephanhughson View Post
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.
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 ?

Reply With Quote
  #12  
Old 08-30-2008, 05:14 AM
sinus sinus is offline
Junior Guru Wannabe
 
Join Date: Jul 2008
Location: Iran
Posts: 95
Unhappy

Quote:
Originally Posted by zacharooni View Post
tail -f /usr/local/apache/logs/error_log
Refresh the page a few times, lemme know what shows up
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...

Reply With Quote
  #13  
Old 08-30-2008, 05:53 AM
stephanhughson stephanhughson is offline
Web Hosting Guru
 
Join Date: Jan 2006
Posts: 268
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.

__________________
www.fishycam.com

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Windows Azure Processes 4.7 Billion Authentication Requests Weekly Web Hosting News 2012-11-27 17:21:03
Cloud Software Provider GreenButton Launches Cloud Fabric Server Platform Web Hosting News 2012-11-06 17:11:09
Microsoft Planning Online Windows Azure Conf, Targeting Cloud Developers Web Hosting News 2012-11-05 16:29:26
Apache Web Server Adds Cloud Capabilities with First Major Update in 5 Years Web Hosting News 2012-02-21 16:05:02
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?