HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   how to access my 1st site (http://www.howtoforge.com/forums/showthread.php?t=54775)

Osa2Unx 4th November 2011 14:37

how to access my 1st site
 
Hi all,

I have installed ubuntu on my server 11.10 and installed ispConfig 3.0 with the walktrough tutorial on the site. Everything is okay.
So I added my first site via the control panel and now I want to access this site.
Problem is I don't get to access it.

When I go to the public ip address of my site I see the IT WORKS! index default site from apache2.

so i go to http://publicip/www.belseledorp.be to see the index.html file in the /var/www/web/www.belseledorp.be directory.

However I get Error

Quote:

Forbidden

You don't have permission to access /www.belseledorp.be/ on this server.
Apache/2.2.20 (Ubuntu) Server at stormserver.tcs-computers.be Port 80
Any ideas why this is?

till 4th November 2011 14:50

You acn not access a namebased apache vhost by IP address. To access the website www.belseledorp.be in a webbrowser, enter:

http://www.belseledorp.be

into the URL bar of the browser and not http://publicip/www.belseledorp.be

Osa2Unx 4th November 2011 14:58

As this is for me a test server I don't own the website www.belseledorp.be

So I don't have dns settings for the domain to point to my publicip

I want to test out all the features of ispConfig

So I created a fictive website. And now I want to access the index page to see all is working.

When you go to http://stormserver.tcs-computers.be
You see the default it works!
So, I need to access the new website

I think this should work.
The ip is 46.19.35.190

till 4th November 2011 15:01

Quote:

I think this should work.
The ip is 46.19.35.190
No, this can not work. Apache namebased vhosts can not be accessed by IP address.

See here how to access a namebased vhost without valid dns record:

http://www.faqforge.com/linux/contro...-a-dns-record/

Osa2Unx 4th November 2011 15:13

What would be the easiest way to check that my server is running correct and the control pannel is working correct to.

register a domain name?
just for testing purposes?

Why is this that a website is not available via vhost ip?
And the standard website is available via the ip?

When I go to /var/www/ I see index.html -> this is availabel
when I go to /var/www/www.tcs-computers.be/web/index.html -> this is not availalbe. (online I mean) it is availaible in the directorys.

I think it can only have something to do with rights chmod etc...
Do get the site being displayed.

till 4th November 2011 15:26

Your server is working correctly. If you want to test it, read the FAQ record I posted above on how to access a namebased vhost.

Osa2Unx 4th November 2011 15:36

Thank you so much for you time and willing me to help.

I have changed the /etc/hosts file with my ip and website

It now has
172.X.X.75 stormserver.priv.tcs-computers.be
46.19.35.190 www.besleldorp.be

However when I go to 46.19.35.190 I go to /var/www/index.html
and not to /var/www/www.belseledorp.be/web/index.html (which is the location made be IspConfig)

till 4th November 2011 15:38

1) Change the hosts file on your desktop, not server.
2) Enter http://www.besleldorp.be in the URL bar of your Webbrowser and not the IP address.

Osa2Unx 4th November 2011 17:02

Hi Till,

Thanks for all the support.
I took the plunge and bought myself a domain name.
Added some dns records to it. And I must say! It seems like working correctly.

Also MySql is working correct and Apache2!

:D

Great great great!!
Wonderfull Control panel so far!
Need to test out some more.
And read the whole 333 pages of the manual :-)


All times are GMT +2. The time now is 15:07.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.