10.5.1 Broken Mail Server - virtual host configuration
Hi,
I have been trying to set up my mail server (new 10.5.1 build) to run with virtual hosts. I read pterobyte's tutorial ( Making Virtual Mail Users in OS X 10.4/10.5 Server) and implemented his suggested workarounds. However, it doesn't seem to have worked. I am now concerned that I have screwed things up beyond reprieve and need help to get it working again.
To give a start, I have included my postconf output below:
swallowtail:postfix serverconfig$ postconf -n
alias_maps = hash:/etc/aliases,hash:/var/mailman/data/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
enableserveroptions = yes
html_directory = no
inet_interfaces = all
mail_owner = _postfix
mailboxsizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mapsrbldomains =
messagesizelimit = 10485760
mydestination = $myhostname,localhost.$mydomain,localhost,inovaplus.com
mydomain = inovaplus.com
mydomain_fallback = localhost
myhostname = swallowtail.inovaplus.com
newaliases_path = /usr/bin/newaliases
ownerrequestspecial = no
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost = mailfilter.fastnet.co.uk
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtpdclientrestrictions = permit_mynetworks rejectrblclient sbl-xbl.spamhaus.org rejectrblclient zen.spamhous.org permit
smtpdpw_server_securityoptions = none
smtpdrecipientrestrictions = permitmynetworks,reject_unauthdestination,permit
smtpduse_pwserver = no
unknownlocal_recipient_rejectcode = 550
virtualaliasdomains = hash:/etc/postfix/virtual_domains
virtualaliasmaps = hash:/etc/postfix/virtual
virtualmailboxdomains = hash:/etc/postfix/virtual_domains
virtual_transport = lmtp:unix:/Volumes/Private/Mail/socket/lmtp
Same issue here. I am current on all system updates. I have noticed this with any photoshop cs3 jpeg file. When using "mail", attached photoshop jpeg files show up as a plain text document "What???" Using Automator produces the same results. I did not have this problem with 10.5.1. I can't mail out any photoshop jpeg files?!@%* I just got off the phone with apple tech support and they told me that Adobe has not yet updated their software to comply with Leopard. Come on. Cover flow in Leopard 10.5.2 is still not working with Adobe photoshop jpeg files either. They Still show up pixelated. Yes, I know the work around by going into photoshop/preferences/file handling/image previews: Never Save. Yea, sure that works, but that is something that not any Mac user should have to do. I have had more problems dealing with pictures on my Mac than my Pc by far. Anybody else? Solution? Better Operating System?
Similar Messages
-
Serving virtual hosts with different instance of weblogic6.1
We are using the apache plugin and weblogic6.1. Is it possible to send the request
for each virtual host to a different instance of weblogic6.1 instance? If so how?
For ex in my httpd.conf I want to say
<VirtualHost abc.xyz.xom>
WebLogicHost 192.168.10.20
WebLogicPort 8001
</VirtualHost>
<VirtualHost cde.xyz.com>
WebLogicHost 192.168.10.20
WebLogicPort 8002
</VirtualHost>
Thanks in Advance
VirenWe have two virtual hosts for our SSO server.
Intranet users use
Name: sso.parlinkom.gv.at
Address: 161.110.13.4
but internet user use
Name: clsso.parlinkom.gv.at
Address: 161.110.1.17
Yes, we have one portal.
Thank you in advance
Wolfgang -
Server Migration failed to migrate web server virtual hosts
I just migrated from an my Mac OS X Server 10.4 to a brand new 10.6 machine. It seems to have copied all my files but failed to bring across the extensive list of virtual hosts I was serving. Entering them in one by one is going to take a while, so does anyone know how to pull them across? I have the old server attached in target mode, but not sure where apache keeps the configuration file for that.
After some more digging, it appeared that migration assistant just completely failed to set up the Open Directory on the new server. Fortunately, I managed to get the old drive cloned to an ATA drive, which I used to boot an ancient G4 tower, from whence I was able to do an Open Directory export and import into the new server.
I seem to be having the same inability to Kerberize the Open Directory that a lot of other people seem to have, but I don't actually need that feature, so it's not a big deal. -
10.9 mail with virtual host
Anyone have experience in setting up mail server on OSX 10.9 with virtual domain (postfix to serve more than one domain)? Coz the old guide (https://support.apple.com/kb/HT3878) with workgroup manager should no longer apply, right?
What I would like to do is to setup the following:-
1. setup a MX Server for two domains (domaina.com and domainb.com)
2. setup some mailbox whereas some of them will be stored locally while some other will be forwarded to other server (e.g. [email protected] would be stored locally whereas [email protected] would be forwarded to [email protected] on some other server sitting in internal network)
3. setup POP3 access so that mail client can connect to this server to retrieve the mail remotely.
4. All email account should not have direct remote access to this mac mini server.
How can I achieve this? -
Oracle application server 10g http server virtual host
Hi,
I have defined a new virtual host, changed its setting and create a folder with html file for redirection.
Now when i am trying to access that new virtual host it is redirecting me to the old application.
e.g.
old.domain.com taking me old application.
new.domain.com taking me old application.
in HTML file i wrote url like ... http://myappsserver:port .......
could you please tell me am i missing some thing..
thanksYou can find the port usage by executing opmnctl status -l from the command line. This should give you the port usage for each opmn-governed component. In a standard setup, web cache normally runs on port 7777 while Oracle HTTP Server runs on 7778. Alternatively, you can check the httpd.conf for the parameter Listen. This will give you the Oracle HTTP Server port as well.
Did you test with the directive NameVirtualHost added? -
Ias console - HTTP Server - Virtual Host Error
Http server is working, but when clicked on the virtual hosts or server settings, mime settings.. the console shows this error.
An error was encountered trying to retrieve configuration data.
Failed to initialize configuration parameter ApacheMainServer.. Entity not found. Resolution: Entity not found Base Exception: The document returned by plugin "apache" is null, or does not have a root element, or does not properly formatted. Resolution: Check to see if the document is properly constructed. A document should not be null and should contain at least one root element.. Base Exception: The document returned by plugin "apache" is null, or does not have a root element, or does not properly formatted. Resolution: Check to see if the document is properly constructed. A document should not be null and should contain at least one root element.
ANYONE HAVE ANY INFO REGARDING THIS ?You can find the port usage by executing opmnctl status -l from the command line. This should give you the port usage for each opmn-governed component. In a standard setup, web cache normally runs on port 7777 while Oracle HTTP Server runs on 7778. Alternatively, you can check the httpd.conf for the parameter Listen. This will give you the Oracle HTTP Server port as well.
Did you test with the directive NameVirtualHost added? -
Mail Server and SMTP Configuration (Leopard Server)
Hello,
Our setup: Mac OS X SERVER 5.2 - LEOPARD SERVER
PowerPC G5
Orange Internet connection via a router / DHCP
We try to find such assistance in configuring your Mac book
OS Server at your service.
We set our server with a local area "domaine.intranet"
We created users with the interface, and have an address
"[email protected]."
Our messaging system works internally with the client MAIL.
We also have an Internet domain "domaine.fr", this area is hosted
In online.net.
We have personal e-mail addresses such as "[email protected]" always
Hosted by online.
We can check our e-mails via the client MAIL by IMAP.
However, we do not send emails to the outside world, and especially
"Domaine.fr" or "[email protected]."
In the console admin Server:
-- LETTERS: we have turned the SMTP protocol allowing mail
Entrant, authorizing "Relayer outgoing mail over the host:
Smtp.orange.fr "
At the tab relay, we leave the config classic 127.0.0.0 / 8
And 192.168.1.0/24.
In the history of mail, there are "postfix / postfix-7563]: fatal: the
Postfix mail system is not running, why then that the service operates on
Priori!
How can I be able to send emails to the outside knowing that we
Use addresses' [email protected]. "
Please tell us a direction to follow or procedure.
Sincerely,
ORIGINAL IN FRENCH
Notre configuration : Mac OS X SERVER 5.2 - LEOPARD SERVER
PowerPC G5
Connexion internet orange via un routeur/DHCP
Nous avons essayer de trouver cette aide à la configuration dans votre livre Mac
OS Server à votre service.
Nous avons configuré notre serveur avec un domaine local en "domaine.intranet"
Nous avons créé des utilisateurs à l'aide de l'interface, et avons une adresse
"[email protected]".
Notre système de messagerie fonctionne en interne avec le client MAIL.
Nous avons également un domaine internet "domaine.fr", ce domaine est hébergé
chez online.net.
Nous avons des adresses mail personnel du type "[email protected]" toujours
hébergé chez online.
Nous pouvons consulter nos emails via le client MAIL par IMAP.
Par contre, nous n'arrivons pas à envoyer des emails à l'extérieur, et notamment
sur "domaine.fr" ou "[email protected]".
Dans la console d'admin Serveur :
- COURRIER : nous avons activé le protocole SMTP en autorisant le courrier
entrant, en autorisant "Relayer le courrier sortant via l'hôte :
smtp.orange.fr"
Au niveau de l'onglet relais, nous avons laisser la config classique 127.0.0.0/8
et 192.168.1.0/24.
Dans l'historique de courrier, il y a "postfix/postfix-script[7563]: fatal: the
Postfix mail system is not running", pourquoi alors que le service fonctionne à
priori !
Comment faire pour pouvoir envoyer nos emails à l'extérieur sachant que nous
utilisons les adresses "[email protected]".
Merci de nous indiquer une direction à suivre ou une procédure.
Cordialement,
Message was edited by: serveurbenseHello,
Thanks for the reply.
I modified according to your advice and tried to send mail, but it does only internally. My mail.log gives me the following information:
Apr 21 10:59:30 domaine postfix/smtp[4521]: 46D302308BE: to=<[email protected]>, relay=smtp.orange.fr[193.252.22.84]:25, delay=0.27, delays=0.05/0.01/0.16/0.05, dsn=5.0.0, status=bounced (host smtp.orange.fr[193.252.22.84] said: 554 <[email protected]>: *Recipient address rejected: Missing Authentication (in reply to RCPT TO command))*
Apr 21 11:00:27 domaine postfix/qmgr[4582]: 2147323090F: removed
Apr 21 11:00:27 domaine postfix/pipe[4608]: 022FF230937: to=<[email protected]>, relay=cyrus, delay=0.28, delays=0.01/0.04/0/0.23, dsn=2.0.0, status=sent (delivered via cyrus service)
Apr 21 11:00:27 domaine postfix/smtp[4606]: 022FF230937: to=<[email protected]>, relay=smtp.orange.fr[193.252.22.86]:25, delay=0.31, delays=0.01/0.04/0.18/0.08, dsn=5.0.0, status=bounced (host smtp.orange.fr[193.252.22.86] said: 553 <[email protected]>: *Sender address rejected: Domain not found (in reply to MAIL FROM command))*
Apr 21 11:00:27 domaine postfix/smtp[4606]: 022FF230937: to=<[email protected]>, relay=smtp.orange.fr[193.252.22.86]:25, delay=0.31, delays=0.01/0.04/0.18/0.08, dsn=5.0.0, status=bounced (host smtp.orange.fr[193.252.22.86] said: 553 <[email protected]>: Sender address rejected: Domain not found (in reply to MAIL FROM command))
Apr 21 11:00:27 domaine postfix/cleanup[4600]: 602A423094E: message-id=<[email protected]>
Apr 21 11:00:27 domaine postfix/bounce[4612]: 022FF230937: sender non-delivery notification: 602A423094E
Apr 21 11:00:27 domaine postfix/qmgr[4582]: 602A423094E: from=, size=3531, nrcpt=1 (queue active)
Apr 21 11:00:27 domaine postfix/qmgr[4582]: 022FF230937: removed
Apr 21 11:00:27 domaine postfix/pipe[4608]: 602A423094E: to=<[email protected]>, relay=cyrus, delay=0.06, delays=0.01/0/0/0.05, dsn=2.0.0, status=sent (delivered via cyrus service)
Apr 21 11:00:27 domaine postfix/qmgr[4582]: 602A423094E: removed
Apr 21 11:01:10 domaine postfix/postfix-script[4664]: refreshing the Postfix mail system
Apr 21 11:01:10 domaine postfix/master[2938]: reload configuration /etc/postfix
Apr 21 11:01:26 domaine postfix/smtpd[4516]: disconnect from domaine.intranet[192.168.1.11]
Apr 21 11:02:10 domaine postfix/postfix-script[4734]: refreshing the Postfix mail system
I am looking for solutions to correct mistakes 553 and 554, hoping that this will allow us to send mail out.
Do you have any other suggestions?
Thank you.
Bonjour
merci pour la réponse.
J'ai modifié selon vos conseils et essayé d'envoyer des mails, mais ça ne marche qu'en interne. Mon mail.log me donne les informations suivantes:
Apr 21 10:59:30 domaine postfix/smtp[4521]: 46D302308BE: to=<[email protected]>, relay=smtp.orange.fr[193.252.22.84]:25, delay=0.27, delays=0.05/0.01/0.16/0.05, dsn=5.0.0, status=bounced (host smtp.orange.fr[193.252.22.84] said: 554 <[email protected]>: *Recipient address rejected: Missing Authentication (in reply to RCPT TO command))*
Apr 21 11:00:27 domaine postfix/qmgr[4582]: 2147323090F: removed
Apr 21 11:00:27 domaine postfix/pipe[4608]: 022FF230937: to=<[email protected]>, relay=cyrus, delay=0.28, delays=0.01/0.04/0/0.23, dsn=2.0.0, status=sent (delivered via cyrus service)
Apr 21 11:00:27 domaine postfix/smtp[4606]: 022FF230937: to=<[email protected]>, relay=smtp.orange.fr[193.252.22.86]:25, delay=0.31, delays=0.01/0.04/0.18/0.08, dsn=5.0.0, status=bounced (host smtp.orange.fr[193.252.22.86] said: 553 <[email protected]>: *Sender address rejected: Domain not found (in reply to MAIL FROM command))*
Apr 21 11:00:27 domaine postfix/smtp[4606]: 022FF230937: to=<[email protected]>, relay=smtp.orange.fr[193.252.22.86]:25, delay=0.31, delays=0.01/0.04/0.18/0.08, dsn=5.0.0, status=bounced (host smtp.orange.fr[193.252.22.86] said: 553 <[email protected]>: Sender address rejected: Domain not found (in reply to MAIL FROM command))
Apr 21 11:00:27 domaine postfix/cleanup[4600]: 602A423094E: message-id=<[email protected]>
Apr 21 11:00:27 domaine postfix/bounce[4612]: 022FF230937: sender non-delivery notification: 602A423094E
Apr 21 11:00:27 domaine postfix/qmgr[4582]: 602A423094E: from=, size=3531, nrcpt=1 (queue active)
Apr 21 11:00:27 domaine postfix/qmgr[4582]: 022FF230937: removed
Apr 21 11:00:27 domaine postfix/pipe[4608]: 602A423094E: to=<[email protected]>, relay=cyrus, delay=0.06, delays=0.01/0/0/0.05, dsn=2.0.0, status=sent (delivered via cyrus service)
Apr 21 11:00:27 domaine postfix/qmgr[4582]: 602A423094E: removed
Apr 21 11:01:10 domaine postfix/postfix-script[4664]: refreshing the Postfix mail system
Apr 21 11:01:10 domaine postfix/master[2938]: reload configuration /etc/postfix
Apr 21 11:01:26 domaine postfix/smtpd[4516]: disconnect from domaine.intranet[192.168.1.11]
Apr 21 11:02:10 domaine postfix/postfix-script[4734]: refreshing the Postfix mail system
Je cherche des solutions pour corriger les erreurs 553 et 554, espérant que cela nous permettra d'envoyer des mails à l'extérieur.
Avez-vous d'autres propositions?
Merci d'avance. -
Virtual Hosts configuration in JServ.conf
I was trying to configure virtual hosts in the Jserv.conf file like this:
NameVirtualHost 138.1.104.151
# directives for vhost1
<VirtualHost 138.1.104.151:10001>
ServerName gsyang-lap.xyz.com
<IfModule mod_jserv.c>
ApJServDefaultHost gsyang-lap.xyz.com
ApJServProperties "C:\ORCL\ias\Apache\Jserv\conf\jserv_1.properties"
ApJServLogFile "C:\ORCL\ias\Apache\Jserv\logs\mod_jserv_1.log"
</IfModule>
</VirtualHost>
# directives for vhost2
<VirtualHost 138.1.104.151:10002>
ServerName gsyang-lap.us.oracle.com
<IfModule mod_jserv.c>
ApJServDefaultHost gsyang-lap.xyz.com
ApJServProperties "C:\ORCL\ias\Apache\Jserv\conf\jserv_2.properties"
ApJServLogFile "C:\ORCL\ias\Apache\Jserv\logs\mod_jserv_2.log"
</IfModule>
</VirtualHost>
After I saved the file and tried to stop/restart the Apache server, I got any warning, saying:"NameVirtualHosts 138.1.104.151 has not virtual hosts". Any idea as to how to fix this problem? Thanks in advance.
SunnyHi,
This seems to be a SO error more than an IAS error.
Have you tried stopping the iAS Server and looking for and old process still running?
It may not be a problem with the file open limit, but may be the one it is trying to user is still in use by and old process.
Carlos -
Virtual Hosts - Configured but still not working -
I configured virtual hosts in my portal so that multiple companies can access there portal with their own domain name. It seems to work fine when i give the a direct link to the site. But some times the original server name is written back on the urls. For example, i am in www.abc.com/portal/page/portal/some_page and it will go back to www.original_server_name.com /pls/portal/page/portal while i am browsing. It doesn't do this for all of them. Is there something i need to set up??
Ok,
I reinstalled a new oracle portal from scratch and followed the virtual hosts guide by dannorris.com which stated that there where errors in the oracle documentation. After following the guide, the virtual hosts work when you go to the http://virtual_host_name.com. It sends you to the "Welcome to Oracle Application Server" page. However when you go and click the link that states
"To manage and monitor Oracle Application Server Portal, log on to Oracle Application Server Portal:
username: portal
password: ias_admin password specified during install"
it kicks you back to the original host name url. Any ideas??
I have multiple clients that need to login and see their domain names only and not the real server name. -
Webdav/virtual host configuration problem
Hi folks,
I have a web server behind firewall, which redirects port 80 to my server's internal IP, 192.168.6.222. I did setup 3 virtual domains there:
blogs.domain.com at *
wiki.domain.com at *
dav.domain.com at *
each site has different root and dav site has its own realm set.
I just found that virtual domains are not working and dav.domain.com doesn't work at all. When I switch dav.domain.com to 192.168.6.222, it eats all connections and even for blogs site shows login sheet.
$ httpd -S
Processing config directory: /etc/httpd/sites/*.conf
Processing config file: /etc/httpd/sites/0000any_80blogs.domain.com.conf
Processing config file: /etc/httpd/sites/0001any_80wiki.domain.com.conf
Processing config file: /etc/httpd/sites/0002any_80dav.domain.com.conf
Processing config file: /etc/httpd/sites/virtualhostglobal.conf
VirtualHost configuration:
wildcard NameVirtualHosts and default servers:
*:80 is a NameVirtualHost
default server blogs.domain.com (/etc/httpd/sites/0000any_80blogs.domain.co.conf:3)
port 80 namevhost blogs.domain.com (/etc/httpd/sites/0000any_80blogs.domain.co.conf:3)
port 80 namevhost wiki.domain.com (/etc/httpd/sites/0001any_80wiki.domain.com.conf:3)
port 80 namevhost dav.domain.com (/etc/httpd/sites/0002any_80dav.domain.com.conf:3)Hi Simon
You are not doing anything wrong. Setting up a virtual host has obviously
worked as you can access it. You still have to specify the port number as
it is not running on the standard port 80 that your browser assumes if you
do not explicitly state it.
regards
Nick
"Simon Pierre NOLIN" <[email protected]> wrote in message
news:3be7f4f1$[email protected]..
>
Hi!
I try to configure a virtual host but it doesn't work. I have create it(name=myVirtualHost,
virtual host names=gandalf.foo.com). I assigne it to my managed server(port 5021).
In the managed server i have a web application calls "rings". If i typethe url,
gandalf.foo.com/rings/login : 404 not found error. BUT if i usegandalf.foo.com:5021/rings/login
: it works.
Can someone explain me what i do wrong?
Regards
Simon Pierre NOLIN -
Weblogic virtual host configuration
Hi,
Can anyone explain to me what is virtual host.
what is the significance and purpose of the same.
in what scenario should we configure a virtual host.
and what is the benefit of the same.
from the documentation i did not understand the concept.
Thanks in advance.I think this page is pretty clear. Does this help?
http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e13952/pagehelp/Corecorevirtualhosttabletitle.html
A virtual host is a set of host names to which WebLogic Server instances (servers) or clusters respond. When you use virtual hosting, you use DNS to specify one or more host names that map to the IP address of a server or cluster. You also specify which Web applications are served by each virtual host. -
Mail server and DNS configuration
I have an XServe G4 running Mac OS X 10.4 Tiger Server, and I have successfully configured two domains that I purchased from GoDaddy as websites on this XServe. It's behind an Airport Extreme, and I have forwarded a bunch of ports in order to enable FTP, SSH, Web, remote Server Administration, webmail, and I have also forwarded the IMAP and SMTP ports. All of these services work except for email, so I am wondering if there is any special DNS settings that I need to configure in the GoDaddy total dns configuration page. I have the MX record pointed directly to my IP, just like the A record. I also have mail.mydomain.com pointed to the A record's IP (maybe I described that poorly, but I hope it gets the point across). I am able to log into webmail and send email out to other people, but when I try replying back to the email which I sent from webmail, I get a bounced message. I also cannot configure a Mail client, but I think I need to get the accounts at least working first. Can someone provide a list of DNS requirements or server configuration requirements for me to check off in order to make this happen? Does anyone know of any great resources to learn this kind of stuff? I'm kinda new to the server thing.
Thanks!
Paulpostconf -n results:
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
html_directory = no
inet_interfaces = localhost
mail_owner = postfix
mailboxsizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname,localhost.$mydomain,localhost,rubenkalath.com
mydomain = rubenkalath.com
mydomain_fallback = localhost
myhostname = mail.rubenkalath.com
mynetworks = 127.0.0.0/8
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpdtls_certfile = /etc/certificates/Default.crt
smtpdtls_keyfile = /etc/certificates/Default.key
smtpdusetls = no
unknownlocal_recipient_rejectcode = 550
virtualmailboxdomains = hash:/etc/postfix/virtual_domains
virtual_transport = lmtp:unix:/var/imap/socket/lmtp
ps U _postfix results:
ps: _postfix: no such user
tail -20 /var/log/mail.log results:
May 15 15:55:27 sincity postfix/cleanup[1257]: 765DC4517A: message-id=<[email protected]>
May 15 15:55:27 sincity postfix/qmgr[1239]: 765DC4517A: from=<[email protected]>, size=881, nrcpt=1 (queue active)
May 15 15:55:27 sincity postfix/smtpd[1254]: disconnect from localhost[127.0.0.1]
May 15 15:55:27 sincity postfix/pipe[1259]: 765DC4517A: to=<[email protected]>, relay=cyrus, delay=0, status=sent (mail.rubenkalath.com)
May 15 15:55:27 sincity postfix/qmgr[1239]: 765DC4517A: removed
May 15 15:58:09 sincity postfix/smtpd[1338]: connect from localhost[127.0.0.1]
May 15 15:58:13 sincity postfix/smtpd[1338]: lost connection after CONNECT from localhost[127.0.0.1]
May 15 15:58:13 sincity postfix/smtpd[1338]: disconnect from localhost[127.0.0.1]
May 15 16:06:09 sincity postfix/postfix-script: refreshing the Postfix mail system
May 15 16:06:09 sincity postfix/master[590]: reload configuration
May 15 16:12:48 sincity postfix/smtpd[1709]: connect from localhost[127.0.0.1]
May 15 16:12:54 sincity postfix/smtpd[1709]: lost connection after CONNECT from localhost[127.0.0.1]
May 15 16:12:54 sincity postfix/smtpd[1709]: disconnect from localhost[127.0.0.1]
May 15 16:28:58 sincity postfix/smtpd[2068]: connect from localhost[127.0.0.1]
May 15 16:28:58 sincity postfix/smtpd[2068]: 1FA354537C: client=localhost[127.0.0.1]
May 15 16:28:58 sincity postfix/cleanup[2071]: 1FA354537C: message-id=<[email protected]>
May 15 16:28:58 sincity postfix/qmgr[1530]: 1FA354537C: from=<[email protected]>, size=776, nrcpt=1 (queue active)
May 15 16:28:58 sincity postfix/smtpd[2068]: disconnect from localhost[127.0.0.1]
May 15 16:29:02 sincity postfix/smtp[2072]: 1FA354537C: to=<[email protected]>, relay=mercury.gatech.edu[130.207.192.26], delay=4, status=sent (250 Ok: queued as 67542CDF86) -
Tomcat virtual host configuration
Next stupid question from me again.
I'm trying to configure my Tomcat to handle several websites. Both websites are going to be JSP/JAVA driven.
Currently I'm struggling to figure out how to tell Tomcat to use application for Host by default.
I'm doing the following:
<Host name="gnum.info" appBase="D:\Users\Alex\web.gnum.info" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Alias>www.gnum.info</Alias>
<Context path="gnum.info" docBase="" debug="0" reloadable="true" cookies="true" />
</Host>
I triend different variations from having NO <Context> included to
1. <Context path="gnum.info" docBase="" debug="0" reloadable="true" cookies="true" />
2. <Context path="gnum.info" docBase="gnum.info" debug="0" reloadable="true" cookies="true" />
I'm always ending up with empty response for "www.gnum.info" (you can see it yourself).
Typing "www.gnum.info/gnum.info" gets back with what I want to see.
BUT
I'd like to see it typing "www.gnum.info" without "/gnum.info"...
Could anybody tell me how to achieve that?Hi Gnum,
Just change your context path to
<Context path="/" docBase="" debug="0" reloadable="true" cookies="true" />
note the "/" instead of "gnum.info"
Kevin -
Tomcat Virtual Host Configuration on windows 2000
Dear Reader,
I am using Tomcat 4.1 with JDK1.4. Currently i have 3 projects.
The navigation for these is ....
http://localhost:9090/Shopping/
http://localhost:9090/Bank/
http://localhost:9090/Sample/
Now,
I need these links as
http://Shopping:9090 or www.shopping.com is local system....
http://bank:9090 or www.bank.com is local system....
http://Sample:9090 or www.sample.com is local system....
I am using Windows OS. Please Help
Advance Thanks.
Rengaraj.RAlso should have mentioned that to get the mappings for the individual web apps (/Shopping, /bank and /Sample) after the localhost portion you need to add a context file for each web app to the tomcat configuration files (location below).
The files will live in /tomcat/Conf/Catalina/localhost/"the name of your web app". As an example something like:
<Context crossContext="true" docBase="/var/webapps/mybankapp" path="/bank" reloadable="true">
</Context>
This is placed in a file called: bank.xml
Edited by: PaulOckleford on Jun 29, 2009 4:14 AM
Edited by: PaulOckleford on Jun 30, 2009 2:26 AM Wrong xml file name -
Virtual Hosts in Apache HTTP Server
How to configure virtual hosts in Apache HTTP Server httpd.conf file.
If I want to access my server with some other name(alias), how can I do this ?
Suggestions in this matter would be highly helpful.
Thanks
Vidhyut AroraFollowing is a note explaining how to setup
Virtual hosts.
Hope this helps
Ranga
Note:70647.1
Subject: Apache Server Virtual Hosting
Last Revision Date: 07-JUN-2001
PURPOSE
This document discusses considerations for setting up virtual hosts on an
Apache machine, to include how to get the hostname working and how to
configure Apache.
SCOPE & APPLICATION
The information in this document is intended for those who manage multiple sites
using an Apache machine.
REFERENCES
First published in Apache Week issue 31 (6th September 1996)
Last update 20th September 1998
Using Virtual Hosts
Virtual Hosts let you run multiple independent Web sites on a single host with
a single Apache setup.
One of the most important facilities in Apache is its ability to run virtual
hosts. This is now the essential way to run multiple Web services - each with
different host names and URLs - that appear to be completely separate sites.
This is widely used by ISPs, hosting sites and content providers who need to
manage multiple sites but do not want to buy a new machine for each one.
Picking an IP address
There are two types of virtual hosts: IP-based and non-IP-based. The former is
where each virtual host has its own IP address. You must have a new IP address
for each virtual host you want to set up, either from your existing allocation
or by obtaining more from your service provider. When you have extra IP
addresses, you tell your machine to handle them. On some operating systems, you
can give a single ethernet interface multiple addresses (typically with an
fconfig alias command). On other systems, you must have a different
physical interface for each IP address (typically by buying extra ethernet
cards).
IP addresses are a resource that costs money and are increasingly difficult to
get, so modern browsers can now also use 'non-IP' virtual hosts. This
lets you use the same IP address for multiple host names. When the server
receives an incoming Web connection, it does not know the hostname that was used
in the URL. However, the new HTTP/1.1 specification adds a facility where the
browser must tell the server the hostname it is using, on the Host: header. If
an older browser connects to a non-IP virtual host, it does not send the Host:
header, so the server must respond with a list of possible virtual
hosts. Apache provides some help for configuring a site for both old and new
browsers.
Picking a Hostname and Updating the DNS
Having selected an IP address, the next stage is to update the DNS so that
browsers can convert the hostname into the right address. The DNS is the system
that every machine connected to the internet uses to find the IP address of host
names. If your hostname is not in the DNS, no one can connect to
your server (except by the unfriendly IP address).
If the virtual hostname you are going to use is under your existing domain,
you can just add the record into your own DNS server. If the virtual hostname
is in someone else's domain, you must get them to add it to their DNS
server files. In some cases, you want to use a domain not yet used on the
internet, in which case you must apply for the domain name from the
InterNIC and set up the primary and secondary DNS servers for it, before adding
the entry for your virtual host.
In any of these cases, the entry you need to add to the DNS is an address record
(an A record) pointing to the appropriate IP address. For example, say you want
the domain www.my-dom.com to access your host with IP address 10.1.2.3: you
must add the following line to the DNS zone file for my-dom.com:
www A 10.1.2.3
Now, users can enter http://www.my-dom.com/ as a URL in their browsers and get
to your Web server. However, it will return the same information as if the
machine's original hostname had been used. So, the final stage is to tell Apache
how to respond differently to the different addresses.
How Apache Handles Virtual Hosts
Configuring Apache for virtual hosts is a two-stage process. First, it needs
to be told which IP addresses (and ports) to listen to for incoming Web
connections. By default, Apache listens to port 80 on all IP addresses of the
local machine, and this is often sufficient. If you have a more complex
requirement, such as listening on various port numbers, or only to specific IP
addresses, then the BindAddress or Listen directives can be used.
Second, having accepted an incoming Web connection, the server must be
configured to handle the request differently, depending on what virtual host it
was addressed to. This usually involves configuring Apache to use a different
DocumentRoot.
Telling Apache Which Addresses to Listen To
If you are happy for Apache to listen to all local IP addresses on the port
specified by the Port directive, you can skip this section. However, there are
some cases where you want to use the directives explained here:
- If you have many IP addresses on the machine but only want to run a Web
server on some of them
- If one or more of your virtual hosts is on a different port
- If you want to run multiple copies of the Apache server serving different virtual
hosts
There are two ways of telling Apache what addresses and ports to listen to:
- Use the BindAddress directive to specify a single address or port
- Use the Listen directive to any number of specific addresses or ports
For example, if you run your main server on IP address 10.1.2.3 port 80, and a
virtual host on IP 10.1.2.4 port 8000, you would use:
Listen 10.1.2.3:80
Listen 10.1.2.4:8000
Listen and BindAddress are documented on the Apache site.
Configuring the Virtual Hosts
Having gotten Apache to listen to the appropriate IP addresses and ports, the
final stage is to configure the server to behave differently for requests on
each of the different addresses. This is done using <VirtualHost> sections in
the configuration files, normally in httpd.conf.
A typical (but minimal) virtual host configuration looks like this:
<VirtualHost 10.1.2.3>
DocumentRoot /www/vhost1
ServerName www.my-dom.com
</VirtualHost>
This should be placed in the httpd.conf file. You replace the text
10.1.2.3 with one of your virtual host IP addresses. If you want to specify a
port as well, follow the IP address with a colon and the port number
(example: 10.1.2.4:8000). If omitted, the port defaults to 80.
If no <VirtualHost> sections are given in the configuration files, Apache
treats requests from the different addresses and ports identically. In terms of
setting up virtual hosts, we call the default behavior the main server
configuration. Unless overridden by <VirtualHost> sections, the main server
behaviour is inherited by all the virtual hosts. When configuring virtual
hosts, you must decide what changes to make in each of the virtual
host configurations.
Any directives inside a <VirtualHost> section apply to just that virtual host.
The directives either override the configuration give in the main server, or
supplement it, depending on the directive. For example, the DocumentRoot
directive in a <VirtualHost> section overrides the main server's DocumentRoot,
while AddType supplements the main server's mime types.
Now, when a request arrives, Apache uses the IP address and port it arrived on
to find a matching virtual host configuration. If no virtual host matches the
address and port, it is handled by the main server configuration. If it does
match a virtual host address, Apache uses the configuration of that virtual
server to handle the request.
For the example above, the server configuration used is the same as the
main server, except that the DocumentRoot is /www/vhost1, and the
ServerName is www.my-dom.com. Directives commonly set in <VirtualHost>
sections are DocumentRoot, ServerName, ErrorLog and TransferLog. Directives
that deal with handling requests and resources are valid inside <VirtualHost>
sections. However, some directives are not valid inside <VirtualHost> sections,
including BindAddress, StartSevers, Listen, Group and User.
You can have as many <VirtualHost> sections as you want. You can
leave one or more of your virtual hosts being handled by the main server, or
have a <VirtualHost> for every available address and port, and leave the main
server with no requests to handle.
VirtualHost sections for non-IP Virtual Hosts
Non-IP virtual hosts are configured in a very similar way. The IP address that
the requests arrive on is given in the <VirtualHost> directive, and the
host name is put in the ServerName directive. The difference is that there
(usually) is more than one <VirtualHost> section handling the same IP address.
For Apache to know whether a request arriving on a particular IP
address is supposed to be a name-based requests, the NameVirtualHost directive
addresses for name-based requests. A virtual host can handle more than one
non-IP hostname by using the ServerAlias directive, in addition to the
ServerName.
null
Maybe you are looking for
-
I create songs in garageband on my iMac, then "share" them to itunes. I purchased Itunes Match so that I could hear them on my iphone 5 (7.1.2), but some of the songs will not show up on my phone. When I checked them on the computer, it says, "This i
-
Tried to download adobe flash several times on our new Mac and it will not open in any internet sites that we have tried.
-
Clean install with least amount of disk space?
Hi, I just ordered a MBP 15", with a 128gb SSD. When it arrives, I'd like to do a re-install and select only the options/languages that are necessary for me. Is there a tutorial, or can you help me with some tips on making the footprint as small as p
-
Canon Eos 5D, Lightroom and RAW images
After a series of tests I carried out with my Canon camera, do you agree with these conclusions on the raw format? Following an import in Lightroom of RAW pictures: Loss of image styles (portrait, landscape, B&W...) Loss of image style changes (+/- s
-
I want to write a variable in a file (open-write-close) with a servlet, how can i do this.