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

  • skybluekangaroo
    Chủ cuộc thi
    • cách đây 6 năm

    If you can work with that I will hire you...

    • cách đây 6 năm
  • skybluekangaroo
    Chủ cuộc thi
    • cách đây 6 năm

    Hm first can you review the updated Project Details where I have listed the current httpd.conf file

    • cách đây 6 năm
  • BlueGenie95
    BlueGenie95
    • cách đây 6 năm

    Waiting for your reply . Thanks

    • cách đây 6 năm
  • BlueGenie95
    BlueGenie95
    • cách đây 6 năm

    You have a option to hire us directly OR please create a new contest & invite us to complete the work

    • cách đây 6 năm
  • BlueGenie95
    BlueGenie95
    • cách đây 6 năm

    Yes we can do it . if you OK with our solution please hire us now

    • cách đây 6 năm
  • BlueGenie95
    BlueGenie95
    • cách đây 6 năm

    Support Team Reply : You have not successfully submitted your entry for this contest as this is the contest you're having an issue with.

    can you please post a new contest here & invite us for the same ?

    • cách đây 6 năm
  • skybluekangaroo
    Chủ cuộc thi
    • cách đây 6 năm

    I guess it is ok but i need private assistance with implementing this code onto my server as per the competition guidelines.

    • cách đây 6 năm
  • BlueGenie95
    BlueGenie95
    • cách đây 6 năm

    Still is on chat with Support team . not get solution yet. once i get will update you

    • cách đây 6 năm
  • BlueGenie95
    BlueGenie95
    • cách đây 6 năm

    Hi

    • cách đây 6 năm
  • BlueGenie95
    BlueGenie95
    • cách đây 6 năm

    OK sure . i cant post my entry i discuss with support team regarding this once i get reply from them will update you

    • cách đây 6 năm
  • skybluekangaroo
    Chủ cuộc thi
    • cách đây 6 năm

    hi BlueGenie,

    Ok thanks for being the first entry. Can you please add a contest entry so i can chat with you in private and get assistance with the implementation into my server.

    • cách đây 6 năm
  • BlueGenie95
    BlueGenie95
    • cách đây 6 năm

    Here is the solution :

    1. Created two websites http://akashmain.tk/account/ and http://akashhaxor.ml/billing/

    2. The content for the domain http://akashmain.tk/account/ is

    --

    content of domain akashmain.tk

    --

    3. The content for the domain http://akashhaxor.ml/billing/ is


    --

    content of domain akashhaxor.ml

    --

    4. Set the reverse proxy by adding the below lines in the virtual host of akashmain.tk

    --

    ProxyPass /account http://akashhaxor.ml/billing/
    ProxyPassReverse /account http://akashhaxor.ml/billing/

    --

    Reference : http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypass

    5. Compile the HTTP configuration file using the command #httpd -S.

    6. If there is no error reported in the configuration file then do a apache service restart.

    5. Now the link http://akashmain.tk/account/ should show the content of http://akashhaxor.ml/billing/

    --

    content of domain akashhaxor.ml

    • cách đây 6 năm
  • BlueGenie95
    BlueGenie95
    • cách đây 6 năm

    Hi

    • cách đây 6 năm

Xem thêm bình luận

Làm thế nào để bắt đầu với cuộc thi

  • Đăng cuộc thi của bạn

    Đăng cuộc thi của bạn Nhanh chóng và dễ dàng

  • Nhận được vô số bài dự thi

    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

    Trao giải cho bài thi xuất sắc nhất Download File - Đơn giản!

Đăng cuộc thi ngay hoặc tham gia với chúng tôi ngay hôm nay!