11-12-2010
Depends on your webserver is setup. If you are using the VirtualHost directive for all the sites being hosted, then the ServerName parameter within httpd.conf can be the hostname of the machine as it isn't used. If you only have 1 site being hosted without VirtualHost then the ServerName is to reflect the site being hosted and would have to be a registered DNS name.
Mike
10 More Discussions You Might Find Interesting
1. IP Networking
I have found in the httpd.conf where it it states the default parse pages like index.htm, index.html, index.php and etc....However, my computer box does not seem to want to automatically load the index.php files. Anyone have any ideas? (5 Replies)
Discussion started by: macdonto
5 Replies
2. IP Networking
Have been asked to remove all images from being logged to the access_log ... where am I going wrong?<VirtualHost 123.456.789.99>
ServerName www.somedomain.com.au
DocumentRoot /agents/tts
Redirect /wap http://somewap.com.au/traveler
LogFormat "%v %h %l %u %t \"%r\" %>s %b" comonvhost... (2 Replies)
Discussion started by: Cameron
2 Replies
3. UNIX for Dummies Questions & Answers
I have just configured httpd.conf on a new Redhat 9 install. Below are my additions to httpd.conf. Everything works fine except that when typing http://spetnik.d2g.com into my web browser, I am sent to the "Default catch all" site. Any clues?
NameVirtualHost *:80
#Default catch all ... (5 Replies)
Discussion started by: Spetnik
5 Replies
4. Ubuntu
Hi everybody,
I have installed Apache 2 + Tomcat 5.5. on Ubuntu 7.04 and the default httpd.conf is empty (0 lines), however there is a file called apache2.conf that looks like a default httpd.conf.
I didn't use Apache in ages, since 1.3.x release, but I remember that the httpd.conf by default... (2 Replies)
Discussion started by: sspirito
2 Replies
5. Red Hat
Hi, I was wondering if someone could help me out here. I am super-paranoid, so am trying to limit what PHP files can be executed on this server. I have a small list of files that I want to allow. The rest, deny. So I have base rule that denies all php files server-wide: order allow,deny ... (0 Replies)
Discussion started by: Lobster
0 Replies
6. Red Hat
Hi, I was wondering if someone could help me out here. I am super-paranoid, so am trying to limit what PHP files can be executed on this server. I have a small list of files that I want to allow. The rest, deny:
<Files ~ "\.(php|php3)$">
order allow,deny
deny from all
</Files>
I... (0 Replies)
Discussion started by: Lobster
0 Replies
7. UNIX for Dummies Questions & Answers
What is the command to see what httpd.conf file is apache using. Apache is started. (1 Reply)
Discussion started by: galford
1 Replies
8. Shell Programming and Scripting
Hello Guys !!
wanted to use SED to pull cout the full vertualhost entry for domain which is specified from command line
Like (IP base httpd.conf)
domain="ServerName takemewithyou.in"
sed -n '/<VirtualHost* $domain/,/<\/VirtualHost>/p' httpd.conf
File can take to test is below
... (0 Replies)
Discussion started by: SilvesterJ
0 Replies
9. Shell Programming and Scripting
I want to search for a block of text in httpd.conf that between two strings and comment it. There are multiple blocks with "<Directory.. and </Directory>"
<Directory "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/htdocs">
#
# Possible values for the Options directive are... (3 Replies)
Discussion started by: kchinnam
3 Replies
10. Red Hat
hi
is it possible ?
explain tome about below items
StartServers 8
MinSpareServers 10
MaxSpareServers 20
ServerLimit 4000
MaxClients 4000
MaxRequestsPerChild 4000
this is my servers 8gig ram & cpu 12 core...
what cann i putting in order this ?
tnx (1 Reply)
Discussion started by: mnnn
1 Replies
LEARN ABOUT MOJAVE
client.conf
client.conf(5) Apple Inc. client.conf(5)
NAME
client.conf - client configuration file for cups
DESCRIPTION
The client.conf file configures the CUPS client and is normally located in the /etc/cups and/or ~/.cups directories. Each line in the file
can be a configuration directive, a blank line, or a comment. Comment lines start with the # character.
Note: Starting with macOS 10.7, this file is only used by command-line and X11 applications plus the IPP backend. The ServerName directive
is not supported on macOS at all. Starting with macOS 10.12, all applications can access these settings in the /Library/Prefer-
ences/org.cups.PrintingPrefs.plist file instead. See the NOTES section below for more information.
DIRECTIVES
The following directives are understood by the client. Consult the online help for detailed descriptions:
AllowAnyRoot Yes
AllowAnyRoot No
Specifies whether to allow TLS with certificates that have not been signed by a trusted Certificate Authority. The default is "Yes".
AllowExpiredCerts Yes
AllowExpiredCerts No
Specifies whether to allow TLS with expired certificates. The default is "No".
Encryption IfRequested
Encryption Never
Encryption Required
Specifies the level of encryption that should be used.
GSSServiceName name
Specifies the Kerberos service name that is used for authentication, typically "host", "http", or "ipp". CUPS adds the remote host-
name ("name@server.example.com") for you. The default name is "http".
ServerName hostname-or-ip-address[:port]
ServerName /domain/socket
Specifies the address and optionally the port to use when connecting to the server. Note: This directive is not supported on macOS
10.7 or later.
ServerName hostname-or-ip-address[:port]/version=1.1
Specifies the address and optionally the port to use when connecting to a server running CUPS 1.3.12 and earlier.
SSLOptions [AllowDH] [AllowRC4] [AllowSSL3] [DenyCBC] [DenyTLS1.0]
SSLOptions None
Sets encryption options (only in /etc/cups/client.conf). By default, CUPS only supports encryption using TLS v1.0 or higher using
known secure cipher suites. Security is reduced when Allow options are used. Security is enhanced when Deny options are used. The
AllowDH option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS). The
AllowRC4 option enables the 128-bit RC4 cipher suites, which are required for some older clients. The AllowSSL3 option enables SSL
v3.0, which is required for some older clients that do not support TLS v1.0. The DenyCBC option disables all CBC cipher suites. The
DenyTLS1.0 option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1.
TrustOnFirstUse Yes
TrustOnFirstUse No
Specifies whether to trust new TLS certificates by default. The default is "Yes".
User name
Specifies the default user name to use for requests.
ValidateCerts Yes
ValidateCerts No
Specifies whether to only allow TLS with certificates whose common name matches the hostname. The default is "No".
NOTES
The client.conf file is deprecated on macOS and will no longer be supported in a future version of CUPS. Configuration settings can
instead be viewed or changed using the defaults(1) command:
defaults write /Library/Preferences/org.cups.PrintingPrefs.plist Encryption Required
defaults write /Library/Preferences/org.cups.PrintingPrefs.plist TrustOnFirstUse -bool NO
defaults read /Library/Preferences/org.cups.PrintingPrefs.plist Encryption
On Linux and other systems using GNU TLS, the /etc/cups/ssl/site.crl file, if present, provides a list of revoked X.509 certificates and is
used when validating certificates.
SEE ALSO
cups(1), default(1), CUPS Online Help (http://localhost:631/help)
COPYRIGHT
Copyright (C) 2007-2017 by Apple Inc.
19 October 2017 CUPS client.conf(5)