Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VirtualHost Problem
#1
Hi, first I'd like to say I really appreciate everything you have done developing ehcp. I made an attempt to setup a server some time ago and gave up because of a similar problem I'm facing now. I must say though, without ehcp I still wouldn't have a successful server, I have learned a great deal from this, so many thanks to you!

Here is my problem. I had my server working fine, except that I continued to have a problem resolving IP's locally. Mistakenly I began messing with the VirtualHosts, and now I cannot access any of the virtual servers. I've spent 2 days googling and reading and I'm almost sure I have all of my configurations correct, but still no luck.

I can access the index.php page of my IP, but not any sub-directories under it.

So, I can access http://{my_ip_address}, but I cannot access http://{my_ip_address}/vhosts/ehcp/ or any of my domains for that matter.

I did make a modification to the hosts file, but I changed it back, restarted everything and still have no luck.

If you could point me in the right direction for research, or even provide a suggestion I would be more than grateful!

Restored from old drupal forum, for user uid:3184 username:WiZZiK
You may reset your password to access your new account here.
Reply
#2
this problem seems misconfiguration of apache.
Normally, ehcp does configure apache and works out of box. But somehow, something might have gone wrong, or some other software that you tried may have broken the apache config.

To fix it, we need to identify it more deeply.
So,
open file at /var/www/index.php, modify it to some distinct thing,
then,
access that in http://yourip/index.php
can you see it on webbrowser ?
if yes, you are in right direction, your basic apache config is ok.

if not, then, apache document root is changed from default. open /etc/apache2/sites-enabled/default
make sure DocumentRoot /var/www

if there are other files in /etc/apache2/sites-enabled
then, check those files too.

let me know the result.
if you wish i may connect and give a try using ssh.

(btw, did you try new ehcp version of 0.29.13, which is released today ? )

Restored from old drupal forum, for user uid:3184 username:WiZZiK
You may reset your password to access your new account here.
Reply
#3
You are awesome man.

No I haven't updated to the new version just yet, but I will for sure after fixing this problem.

Ok, if I go to http://my-ip/index.php it does not work. I believe this is what you were asking me to do, but I'm not sure if I missed something with modifying that file first?

Here is my /etc/apache2/default file:

VirtualHost 67.58.172.162:80

ServerName default
DocumentRoot /var/www
Directory
Options FollowSymLinks
AllowOverride None
Directory

Directory /var/www/vhosts
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order Allow,Deny
Allow from All
Directory
<FilesMatch "access_log|error_log">
Deny from All
FilesMatch

ErrorLog /var/log/apache2/error.log
LogLevel debug
CustomLog /var/log/apache2/access.log combineddefault

VirtualHost

As you can see the /var/www is there, but what about the VirtualHost ip? That is my IP, but I'm not so sure I have this correct. I've done a ton of research, but I cannot seem to wrap my mind around the proper way of using VirtualHost.

You are more than welcomed to SSH in my server, just let me know how to pass the credentials to you.

Your help is more than appreciated!

EDIT: sorry if the file looks funny i had to remove the tags b/c they were being interpreted by the html on this site.

UPDATE: I changed the default file in /etc/apache2. I used * instead of the IP address in the VirtualHost directive. Now all of my domains resolve to the index.html file in root. I certainly have a VirtualHost problem?


Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#4
After making the change from my IP address to the * in the VirtualHost directive in the sites-enabled directory, I was able to access EHCP. From there I added DNS Only to the domains I already setup, and voila it's fixed...well partially fixed atleast, I still cannot resolve locally and now I'm showing each domain twice (not a big deal but maybe a problem?) in EHCP under domains.

So, here comes the noob question...my router is serving DHCP, so will the server handle resolving IP's locally? or must I set each of my client machines individually? Or should I use the router if it's even possible?

Restored from old drupal forum, for user uid:3184 username:WiZZiK
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