What am I missing? If I go to mysite.com:9999
I get my site, but not mysite.com
Obviously the users shouldn't need to type in the port, so what do I need to do? I'm not really trying to hide the port so much as not require the user to type it in the URL. Is this an Apache configuration setting somewhere? Should I be looking at httpd.config, container config or elsewhere? It is a Virtual Host on Apache server. Any suggestions are appreciated.
Edit- the working virtual host blocks in virtualhosts.conf looks like this:
Near the start the virtual host entries are named something like this:
NameVirtualHost *:700
NameVirtualHost *:710
...
NameVirtualHost *:760
Below the working block for the http version looks like this:
<VirtualHost *:710>
ServerName webdev.url.com
ServerAdmin [email protected]
# Comment out when OC4J instance is down for maintenance:
<IfModule mod_oc4j.c>
Oc4jMount
</IfModule>
# Uncomment when OC4J instance is down for maintenance:
# DocumentRoot "/org/dev"
# - Restrict 'Cross-Site-Tracking' or XST
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
<IfModule mod_dir.c>
DirectoryIndex index.jsp
</IfModule>
ErrorLog "|/opt/app/oracle/product/AS10.1.2/Apache/Apache/bin/rotatelogs/logs/dev_error_log 440"
CustomLog "|/opt/app/oracle/product/AS10.1.2/Apache/Apache/bin/rotatelogs/logs/dev_access_log 440" common
<Location "/pls/dev">
Order deny,allow
Deny from all
Allow from ####internal ip addresses####
</Location>
</VirtualHost>
The new one that requires the port to be specified looks like this:
## - for Mobile
<VirtualHost *:770>
ServerName mdev.url.com
ServerAdmin [email protected]
# Comment out when OC4J instance is down for maintenance:
<IfModule mod_oc4j.c>
Oc4jMount / msitedev
</IfModule>
# - Restrict 'Cross-Site-Tracking' or XST
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
<IfModule mod_dir.c>
DirectoryIndex m.jsp
</IfModule>
ErrorLog "|/opt/app/oracle/product/AS10.1.2/Apache/Apache/bin/rotatelogs/logs/mdev_error_log 440"
CustomLog "|/opt/app/oracle/product/AS10.1.2/Apache/Apache/bin/rotatelogs/logs/mdev_access_log 440" common
# <Location "/org/dev">
# Order deny,allow
# Deny from all
# Allow from ####
# </Location>
</VirtualHost>
Again, I am just trying to figure out if something here is suppressing the need to enter the port # (eg. 710) in the URL. Upon examination, there don't appear to be any htaccess files anywhere.
<VirtualHost *:80>
? Something like<VirtualHost 123.456.78.9:80>
? As an aside (and I don't mean to push you off on another SE), is this becoming more appropriate for ServerFault?Listen #.#.#.#:80
andNameVirtualHost#.#.#.#:80
block, but it is commented out now.<web-site port="710" protocol="ajp13" display-name="OracleAS Java Web Site"> <frontend host="dev.url.com" port="80" /> <default-web-app application="main" name="main" />