I've read many tutorials on creating virtual hosts but I have had no luck, Im doing something wrong...
Ok, so I have my main site blurr-ink.com, and in webmin under apache blurr-ink.com is the default server, so blurr-ink.com and http://www.blurr-ink.com both send you to the same place, which is fine, but I'm trying to make hide.blurr-ink.com send you to a different page... I've tried many different configurations and can't seem to get it to work at all....
I want hide.blurr-ink.com to only be accessible from the address https://hide.blurr-ink.com, but no matter how I configure it http://*.blurr-ink.com (* being, blank, www, ftp, hide, etc) will bring you to the same place.. my main page, and https://*.blurr-ink.com (again, blank, ftp, hide, www, etc) all bring you to my proxy
As you can see, by checking these 6 links:
The first 3 take will take you to my main site, the other 3 take you to my proxy... and the only way to make the https:// ones work was to make the address for them ANY.... I have a few images to show you what I mean and I'll post the config's aswell.
http://www.blurr-ink.com http://hide.blurr-ink.com
http://ftp.blurr-ink.com https://ftp.blurr-ink.com
https://www.blurr-ink.com https://hide.blurr-ink.com
As you can see shouldn't ftp.blurr-ink.com send you to a different page then the main site page!?!?
here is my httpd.conf:
Ok, so I have my main site blurr-ink.com, and in webmin under apache blurr-ink.com is the default server, so blurr-ink.com and http://www.blurr-ink.com both send you to the same place, which is fine, but I'm trying to make hide.blurr-ink.com send you to a different page... I've tried many different configurations and can't seem to get it to work at all....
I want hide.blurr-ink.com to only be accessible from the address https://hide.blurr-ink.com, but no matter how I configure it http://*.blurr-ink.com (* being, blank, www, ftp, hide, etc) will bring you to the same place.. my main page, and https://*.blurr-ink.com (again, blank, ftp, hide, www, etc) all bring you to my proxy
As you can see, by checking these 6 links:
The first 3 take will take you to my main site, the other 3 take you to my proxy... and the only way to make the https:// ones work was to make the address for them ANY.... I have a few images to show you what I mean and I'll post the config's aswell.
http://www.blurr-ink.com http://hide.blurr-ink.com
http://ftp.blurr-ink.com https://ftp.blurr-ink.com
https://www.blurr-ink.com https://hide.blurr-ink.com
As you can see shouldn't ftp.blurr-ink.com send you to a different page then the main site page!?!?
here is my httpd.conf:
Code:
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "/var/log/foo_log"
# with ServerRoot set to "/usr/local" will be interpreted by the
# server as "/usr/local//var/log/foo_log".
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk. If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "/usr/local"
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen *:80
Listen *:443
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule authn_file_module libexec/apache22/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache22/mod_authn_dbm.so
LoadModule authn_anon_module libexec/apache22/mod_authn_anon.so
LoadModule authn_default_module libexec/apache22/mod_authn_default.so
LoadModule authn_alias_module libexec/apache22/mod_authn_alias.so
LoadModule authz_host_module libexec/apache22/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache22/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache22/mod_authz_user.so
LoadModule authz_dbm_module libexec/apache22/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so
LoadModule authz_default_module libexec/apache22/mod_authz_default.so
LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so
LoadModule file_cache_module libexec/apache22/mod_file_cache.so
LoadModule cache_module libexec/apache22/mod_cache.so
LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so
LoadModule dumpio_module libexec/apache22/mod_dumpio.so
LoadModule include_module libexec/apache22/mod_include.so
LoadModule filter_module libexec/apache22/mod_filter.so
LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so
LoadModule deflate_module libexec/apache22/mod_deflate.so
LoadModule log_config_module libexec/apache22/mod_log_config.so
LoadModule logio_module libexec/apache22/mod_logio.so
LoadModule env_module libexec/apache22/mod_env.so
LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so
LoadModule cern_meta_module libexec/apache22/mod_cern_meta.so
LoadModule expires_module libexec/apache22/mod_expires.so
LoadModule headers_module libexec/apache22/mod_headers.so
LoadModule usertrack_module libexec/apache22/mod_usertrack.so
LoadModule unique_id_module libexec/apache22/mod_unique_id.so
LoadModule setenvif_module libexec/apache22/mod_setenvif.so
LoadModule version_module libexec/apache22/mod_version.so
LoadModule ssl_module libexec/apache22/mod_ssl.so
LoadModule mime_module libexec/apache22/mod_mime.so
LoadModule dav_module libexec/apache22/mod_dav.so
LoadModule status_module libexec/apache22/mod_status.so
LoadModule autoindex_module libexec/apache22/mod_autoindex.so
LoadModule asis_module libexec/apache22/mod_asis.so
LoadModule info_module libexec/apache22/mod_info.so
LoadModule cgi_module libexec/apache22/mod_cgi.so
LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so
LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache22/mod_negotiation.so
LoadModule dir_module libexec/apache22/mod_dir.so
LoadModule imagemap_module libexec/apache22/mod_imagemap.so
LoadModule actions_module libexec/apache22/mod_actions.so
LoadModule speling_module libexec/apache22/mod_speling.so
LoadModule userdir_module libexec/apache22/mod_userdir.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so
LoadModule php5_module libexec/apache22/libphp5.so