Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Just get my domain name served up - not the web pages!

General questions about VestaCP
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
briangriffin
Posts: 4
Joined: Wed Oct 02, 2013 3:49 pm

Just get my domain name served up - not the web pages!
  • Quote

Post by briangriffin » Wed Oct 02, 2013 3:56 pm

Hi,

Installed Vesta fine on CentOS 6.4 - everything seems to be up & running OK on my VPS. I've created a mydomain.conf config file for my website in the nginx conf.d and restarted nginx. But no matter what I do when I browse to my site all I get is the domain name shown in large text, not my pages served up.

I have ticked "nginx support" for the domain, I can see entries in the access log and even one or two of the usual favicon errors in the error log, but I never get to see my site pages - just a white page with the domain name and underneath it "Powered by VESTA" in small text. I've tried suspending & unsuspending the web service in Vesta without success.

Can anyone suggest a fix please?

Thanks,

Steve
Top

briangriffin
Posts: 4
Joined: Wed Oct 02, 2013 3:49 pm

Re: Just get my domain name served up - not the web pages!
  • Quote

Post by briangriffin » Wed Oct 02, 2013 3:59 pm

Hmm.. that's odd. I just stopped httpd and now I get an error 500 when browsing to my site. I assumed that ticking "enabled nginx support" for my site meant it would be using nginx & not httpd? Now I'm confused! :-)

Steve
Top

briangriffin
Posts: 4
Joined: Wed Oct 02, 2013 3:49 pm

Re: Just get my domain name served up - not the web pages!
  • Quote

Post by briangriffin » Wed Oct 02, 2013 4:36 pm

OK so to answer my own question (bad form, I know!). Seems there's a /home/admin/web/ directory in which the mydomain.com has its own file structure. I needed to transfer what I'd originally had in /var/www/html/mydomain.com into /home/admin/web/public_html is that right?

Can someone point me at the documentation for Vesta please - looks like things are done a little different to what I was expecting.

Despite Vesta using httpd & nginx I didn't need to create a virtualhost in httpd.conf, I didn't need a separate mydomain.conf in nginx I needed to put my site in /home/admin/web/public_html

Is there a way to tell Vesta to use the standard document root structure of httpd & nginx instead of /home/USER/web/ ?

Steve
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Just get my domain name served up - not the web pages!
  • Quote

Post by skid » Wed Oct 02, 2013 4:44 pm

Hi Steve,

that's right Vesta automatically create nginx and apache configuration. You don't have to do it manually. As for the document_root location only /home/admin/web/%domain%/public_html is supported at the moment.

Unfortunately control panel documentation is not ready yet. Please fee free to ask any question here.
Top

briangriffin
Posts: 4
Joined: Wed Oct 02, 2013 3:49 pm

Re: Just get my domain name served up - not the web pages!
  • Quote

Post by briangriffin » Thu Oct 03, 2013 1:35 pm

Thanks for the reply! Looking forward to documentation and trying Vesta with WHMCS.

Keep up the good work, it's looking very promising.

Steve
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Just get my domain name served up - not the web pages!
  • Quote

Post by skid » Thu Oct 03, 2013 2:37 pm

The WHMCS setup is quite easy

Code: Select all

cd /home/wex/web/billing-whcms-site.ltdr/public_html/modules/servers
mkdir vesta
wget http://c.vestacp.com/0.9.8/rhel/whmcs-module.php -O vesta.php
Top

SANDPOND
Posts: 6
Joined: Thu Aug 13, 2015 12:18 am

Need Option For Changing DOCUMENT ROOT
  • Quote

Post by SANDPOND » Fri Oct 02, 2015 12:41 am

Hello:

A way to change the default document root is needed!. Very often it is better to install an application in a specially named subdirectory, like "wordpress", "drupal", "myapp", etc, rather than dumping all of the web files and directories into the "/public_html/" webroot.

I suggest to include an option for each Vesta Package type for setting a custom document root (subdirectory).

I think a lot of people are hung up on this problem. Yes, it is possible to do workarounds in the apache2 and NGINX config files, do rewrites, or use ugly .htaccess directives, but this adds unnecessary complexity to the Vesta/Webserver installation.

Vesta is becoming popular with application developers because they can use the Vesta CLI to develop deployment and management systems.

Keep up the good work Vesta, but please considering adding a way to change the document root to a custom subdirectory as soon as possible.

THANKS !
skid wrote:As for the document_root location only /home/admin/web/%domain%/public_html is supported at the moment.
P.S.: Need CLI documentation too !
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password