LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-12-2012, 03:40 PM   #1
Jonathan_Frias
LQ Newbie
 
Registered: Jun 2012
Posts: 6

Rep: Reputation: Disabled
Easy question about tutorial


I've been following this tutorial:

http://www.howtoforge.com/perfect-se...ispconfig-3-p6

I got down to the section where it says:

Code:
If you want to use a /webmail or /squirrelmail alias that you can use from your web sites, this is a bit more complicated than for Apache because nginx does not have global aliases (i.e., aliases that can be defined for all vhosts). Therefore you have to define these aliases for each vhost from which you want to access SquirrelMail.

To do this, paste the following into the nginx Directives field on the Options tab of the web site in ISPConfig:
It tells me to edit some files, but it doesn't really say where they are. I know it seems silly, but how am I suppose to get to them.
 
Old 06-12-2012, 09:04 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,230

Rep: Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552Reputation: 1552
Try locate [filename] in a terminal.
 
Old 06-13-2012, 08:50 AM   #3
Jonathan_Frias
LQ Newbie
 
Registered: Jun 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I think I solved this issue, but it lead me to another

The file is located at:
/etc/nginx/sites-available/ispconfig.vhost

Assuming the directions were following correctly all you have to do is uncomment the configuration section for squirrel mail. For me it was line 58, and it starts with

Code:
location /squirrelmail {....
...
}
The problem is the ssl listen port, which was set to 8080 by default(non-privileged port) but if I change to the 443(default privileged port for ssl), it seems to barf.

Side note: I am sure this is the configuration I have to change. I tested it out by changing it to 9090 to see if that's all I had to change.

Could it be that nginx is not running as root?
 
Old 06-13-2012, 11:46 AM   #4
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
What is the error message that it barfs with? Not launching as a privileged user will causes errors when trying to bind a process to a low numbered port. Normally, processes such as servers are started from init as root and then the root privilege is dropped. I haven't used ngix, but I imagine it would be the same way. Looking at some sample configurations (e.g. http://nginx.org/en/docs/http/config...s_servers.html) there doesn't seem to be anything magical about setting up port 443, which would seem to confirm your privilege suspicion.
 
Old 06-13-2012, 03:08 PM   #5
Jonathan_Frias
LQ Newbie
 
Registered: Jun 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I feel dumb sometimes.

I decided to try running lynx @ localhost:443 and it works correctly.

So then it has to be a firewall issue. I go to check and sure enough, there is the problem!

Thanks for all your help guys.
 
  


Reply

Tags
configuration, mailserver


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Tutorial: Easy Linux File-sharing With WebDav LXer Syndicated Linux News 0 03-08-2011 11:20 AM
LXer: Tutorial: Four Easy Fun Useful Things You Can Do With Linux LXer Syndicated Linux News 0 10-01-2008 12:41 AM
LXer: Tutorial: An Easy Tutorial on IP Tables and Port Knocking LXer Syndicated Linux News 0 02-04-2008 05:20 PM
GTK tutorial question Abomb Programming 4 05-10-2006 05:53 PM
An easy to follow LDAP tutorial xowl Linux - Networking 1 03-19-2005 01:32 AM


All times are GMT -5. The time now is 03:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration