Vesta Control Panel - Forum

Community Forum

Skip to content

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

Search found 28 matches

Go to advanced search

Advanced search
Search found 28 matches
  • Previous
  • 1
  • 2
  • 3
by jarland
Fri Jan 17, 2014 8:17 pm
Forum: Web Server
Topic: cannot make redirect from www to non-www
Replies: 10
Views: 17127

Re: cannot make redirect from www to non-www

Yeah I use htaccess pretty heavily. I suppose you could always do it the easy way, the way I do it. I just make www a CNAME pointing to my domain. Like this: www 14400 IN CNAME jarland.me Thanks will try that :) When nginx is a reverse proxy - htaccess works only for redirects? Can i set max_upload...
  • Jump to post
by jarland
Fri Jan 17, 2014 8:07 pm
Forum: Web Server
Topic: cannot make redirect from www to non-www
Replies: 10
Views: 17127

Re: cannot make redirect from www to non-www

Yeah I use htaccess pretty heavily. I suppose you could always do it the easy way, the way I do it. I just make www a CNAME pointing to my domain. Like this:
www 14400 IN CNAME jarland.me
  • Jump to post
by jarland
Fri Jan 17, 2014 7:49 pm
Forum: Web Server
Topic: cannot make redirect from www to non-www
Replies: 10
Views: 17127

Re: cannot make redirect from www to non-www

In your public_html folder make a .htaccess file and include these contents. Replace domain.com with your domain, make sure to leave the \ in there.

Code: Select all

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(([a-z0-9_]+\.)?domain\.com)$ [NC]
RewriteRule .? http://%1%{REQUEST_URI} [R=301,L]
  • Jump to post
by jarland
Fri Jan 17, 2014 7:44 pm
Forum: General Discussion
Topic: nginx: [emerg] bind() to 0.0.0.0:80 failed
Replies: 6
Views: 12964

Re: nginx: [emerg] bind() to 0.0.0.0:80 failed

Hmm. Did you try a "service vesta restart" again? My first thought is the failed restart attempt killed apache but failed to start things back up again because it couldn't kill nginx. With nginx dead now everything should start up again at command. Maybe add in "service apache2 restart" or "service ...
  • Jump to post
by jarland
Fri Jan 17, 2014 7:42 pm
Forum: Web Server
Topic: cannot make redirect from www to non-www
Replies: 10
Views: 17127

Re: cannot make redirect from www to non-www

Are you using nginx to serve the page completely or as a reverse proxy to Apache?
  • Jump to post
by jarland
Fri Jan 17, 2014 7:37 pm
Forum: General Discussion
Topic: nginx: [emerg] bind() to 0.0.0.0:80 failed
Replies: 6
Views: 12964

Re: nginx: [emerg] bind() to 0.0.0.0:80 failed

kill 1625

If you're adventurous like me, kill -9 1625
  • Jump to post
by jarland
Fri Jan 17, 2014 7:32 pm
Forum: General Discussion
Topic: root or/and intermediate cerificate not found
Replies: 7
Views: 11203

Re: root or/and intermediate cerificate not found

There was a bug with OpenSSL that caused this that has been fixed via Vesta patch a while ago. Oddly, I hit the same issue last night though on a new install on CentOS 6.5. I wonder if we're both doing something wrong.
  • Jump to post
by jarland
Fri Jan 17, 2014 7:30 pm
Forum: General Discussion
Topic: nginx: [emerg] bind() to 0.0.0.0:80 failed
Replies: 6
Views: 12964

Re: nginx: [emerg] bind() to 0.0.0.0:80 failed

Sounds like nginx is stuck. Try "service nginx stop" first, or "ps faux | grep nginx" to see if an instance is still running that won't die. Maybe throw a kill -9 at the PID as a worst case scenario...I only say that because I like to live life on the edge ;)
  • Jump to post

Search found 28 matches
  • Previous
  • 1
  • 2
  • 3

Go to advanced search



  • 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