Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Subdomain is not acessible
#1
EHCP 0.29.15.
DEBIAN 5.05

I set a virtual host up, everything worked OK. I then tried setting up a subdomain, and I got a message telling that everything was set up OK, but when I try the subdomain, I get a message that the subdomain was not found.

The following was added by EHCP to /etc/apache2/apache2.conf:

Include /var/www/new/ehcp/apachehcp.conf
Include /var/www/new/ehcp/apachehcp_subdomains.conf
Include /var/www/new/ehcp/apachehcp_auth.conf
Include /var/www/new/ehcp/apachehcp_passivedomains.conf

I now have the following directories:

/var/www/new/

Inside that directory, I now have the following directories:

- ehcp (has in it all the ehcp files, and .conf files)
- images_default_index
- vhosts (it has in it an ehcp directory with only an index.html file)

I also have: /var/www/vhosts and in this directory, I have the domain I created earilier:

/var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox (sandbox is the name of the subdomain).


The file Include /var/www/new/ehcp/apachehcp_subdomains.conf seems to have in it the right information:

#____________start of sandbox.blabplatform.com__paneluser:mydomain_reseller:_id:1____________

<VirtualHost *>
ServerName sandbox.mydomain.com
ServerAlias www.sandbox.mydomain.com
UseCanonicalName Off
DocumentRoot /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox
#CustomLog /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/logs/access_log combined # homedir yerine, domainhomedir gibi bisey olmali...
CustomLog /var/log/apache_common_access_log combined

php_admin_value open_basedir /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox
php_admin_value upload_tmp_dir /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/phptmpdir
php_admin_value session.save_path /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/phptmpdir

<directory /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/phptmpdir/>
Order allow,deny
deny from all
</directory>

<directory /var/www/vhosts/mydomain/mydomain.com/httpdocs/subdomains/sandbox/logs/>
Order allow,deny
deny from all
</directory>
</VirtualHost>

Any ideas?




Restored from old drupal forum, for user uid:3691 username:blabbings
You may reset your password to access your new account here.
Reply
#2
are you on same lan as your server? or are you working on your server.
if yes, you need to define your domain/subdomain in your local hosts file

try also:
/etc/init.d/apache2 restart
this is normally done by ehcp. just i said to be sure.


Restored from old drupal forum, for user uid:3691 username:blabbings
You may reset your password to access your new account here.
Reply
#3
I did restart apache2, but I am still getting the error.

I am not sure what you mean by being on the same LAN as my server. I am using my laptop to connect to my server via EHCP (mydomain.com), log on to the EHCP control panel, create a Vhost (domain), which I can then access fine from my laptop, and then I create the subdomain, and as you can see from the files and messages, it looks fine, but I still cannot access the subdomain from my laptop.

My laptop and the server I am managing are on different static IP addresses.

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#4
your situation is strange. as you said, your configs seems ok.

in this case, we need to diagnose your case more deeply.

please send your error text, even your screenshot,
also look at apache logs, what is seen on apache access logs, maybe error log.

maybe you connect to somewhere wrong..
or subdomain goes to somewhere else.

on your client console,
try:
host subdomain.domain.com
or
host www.subdomain.domain.com

does it sovle to right ip address ?



Restored from old drupal forum, for user uid:3691 username:blabbings
You may reset your password to access your new account here.
Reply
#5
No. It is not resolving to the right address. When I do:
sandbox.mydomain.com, it resolves to my laptop's ip address

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#6
then, most probably, you are using your local hosts file to make it resolve your laptop.
or you are using something else.

remove those things that makes it resolve your laptop,
then, when you see it resolves the webserver, it should work i think.

i hope this was useful.

Restored from old drupal forum, for user uid:3691 username:blabbings
You may reset your password to access your new account here.
Reply
#7
1st of all I'd like to thanks the developers for EHCP. - Great work guys.

Issue I run into looks similar to upper mentioned.
The domains on the test machine works fine ( 21 at the moment ) but neither are accessible with www nor sub domains are...I'll try to figure it out and to inform You if I find the problem source.

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#8
Hi, I tried to make a link shop.airkayu.com to airkayu.com/shop, but didn't not succeed. So, I tried to create a new subdomain at shop.airkayu.com and put a test page there ended up no goal. Page Error. May I know what's the go around?

Restored from old drupal forum, for user uid:3714 username:NeoATMatrix
You may reset your password to access your new account here.
Reply
#9
Why don't you use simple http redirect ? symlinking may not work there. it has a different goal .

Restored from old drupal forum, for user uid:3007 username:jslim18
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping