Cpanel Virtual Server configuration
- Tình trạng: Closed
- Giải thưởng: $70
- Các bài thi đã nhận: 2
Tóm tắt cuộc thi
I am running a WHM (CPANEL) server with multiple accounts and domains.
I want to configure my server (using Virtual Server rules) so that when I visit
domainA.com
..it acts like a normal domain. And when I visit:
domainA.com/account
..it spoofs or masks or shows (whatever term is appropriate):
domainB.com/billing/*
(Both domains are on the same apache server.)
++++
Note! I don't want a redirect!
SO, I need to modify httpd.conf file using the Cpanel apache include editor.
1. I need to put the custom config into either:
1.a /usr/local/apache/conf/includes/pre_virtualhost_global.conf
1.b /usr/local/apache/conf/includes/post_virtualhost_global.conf
2. Any other changes required.
++++
The winner of this competition will be the person who can
1. demonstrate this functionality on their OWN server -
2. provide clear instructions for me to implement onto MY server.
As soon as you have completed #1 submit your entry and show me the urls. I will be in touch in order of #1 submission for point #2!
++++++
I can add code to either of these files:
1.a /usr/local/apache/conf/includes/pre_virtualhost_global.conf
1.b /usr/local/apache/conf/includes/post_virtualhost_global.conf
++++++++++++++++++
here is the current httpd.conf section for domainA
++++++++++++++++++++
# DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
<VirtualHost 122.x.x.x:80>
ServerName domainA.com.au
ServerAlias mail.domainA.com.au www.domainA.com.au
DocumentRoot /home/domainA/public_html
ServerAdmin webmaster@domainA.com.au
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/domainA.com.au combined
CustomLog /usr/local/apache/domlogs/domainA.com.au-bytes_log "%{%s}t %I .\n%{%s}t %O ."
## User domainA # Needed for Cpanel::ApacheConf
UserDir enabled
<IfModule mod_suphp.c>
suPHP_UserGroup domainA domainA
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/domainA:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule sapi_apache2.c>
php_admin_value open_basedir "/home/domainA:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
</IfModule>
<IfModule !mod_disable_suexec.c>
<IfModule !mod_ruid2.c>
SuexecUserGroup domainA domainA
</IfModule>
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid domainA domainA
</IfModule>
<IfModule itk.c>
# For more information on MPM ITK, please read:
# http://mpm-itk.sesse.net/
AssignUserID domainA domainA
</IfModule>
ScriptAlias /cgi-bin/ /home/domainA/public_html/cgi-bin/
# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2_2/domainA/domainA.com.au/*.conf"
</VirtualHost>
Các kĩ năng yêu cầu
Bảng thông báo công khai
Làm thế nào để bắt đầu với cuộc thi
-
Đăng cuộc thi của bạn Nhanh chóng và dễ dàng
-
Nhận được vô số Bài dự thi Từ khắp nơi trên thế giới
-
Trao giải cho bài thi xuất sắc nhất Download File - Đơn giản!