Bug 601176
Summary: | [apache] '*' isn't handled in the vhost port specification | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Lukas Krejci <lkrejci> |
Component: | Plugins | Assignee: | Lukas Krejci <lkrejci> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Corey Welton <cwelton> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 3.0.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 2.4 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-08-12 16:50:24 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 593121 |
Description
Lukas Krejci
2010-06-07 12:02:10 UTC
Fixed in commit 3617607ac9b93a68a790a8c465679cb74f9f11f1 I am returning this back to dev for one, maybe two, reasons. 1) If i make the following change manually <VirtualHost 127.0.0.1:*> ServerName all-ports DocumentRoot /var/www/html </VirtualHost> The resulting value in the Configuration tab, "Server Name" field shows no asterisk. 2) When I try to create a virtual host via GUI (parent resource > Inventory > Overview | "Create New", and I enter a string akin to 127.0.0.1:*, the creation fails with the following message Wrong format of virtual host resource name. - Cause: java.lang.NumberFormatException:For input string: "*" ServerName not having a '*' is expected. If you look at the vhost definition, the ServerName directive contains no asterisk either. Having asterisk in the ServerName is actually illegal. If you look in the docs http://httpd.apache.org/docs/2.2/mod/core.html#servername, you'll notice that the ServerName directive contains basically a URL string that the server should report itself as. Therefore an asterisk as a port number has no meaning in this context and the error message you mention is correct in that respect. When creating the virtual host, you actually enter the virtual host ip:port (or whatever applicable as per docs http://httpd.apache.org/docs/2.2/mod/core.html#virtualhost (i.e. 127.0.0.1:* in the above example) as the resource name of the newly created vhost. This is a confusing limitation of the UI... Alright... QA Verified then. Mass-closure of verified bugs against JON. |