Guest OS Frezzeing on Virtual Host

Hello Everyone,
I am looking for a second opinion into an issue we are experiencing.
We have a virtual server running server 2012 R2 Hyper-V. It has 6 Guest OS's on it (Server 2012 R2) Running web servers.
Every so often i find 1 virtual "dead in the head" where it will not let me login via the console but continues to operates in terms of Ping and i can telnet on to the server via port 80. I cannot file browse to the server either.
Looking at the performance of the hyper-v host i  cannot see an issue.
Could anyone point me in a good direction to start diagnosing this? I am going to guess its resource related even though the box is well specced:
Host spec:
20 x 2.50GHz Cores (40 Logical)
128GB OF RAM
480GB x 4 SSD - Raid 10
Each Guest Has: (6 Guests)
6 Cores On 1 Socket.
16GB Of RAM
Thank you.

Hi
Can you RDP to the server? Any anti-virus on the server you can disable and check? Are the drivers up-to-date as well?
Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • OAS: The request did not specify a valid virtual host.

    Hi,
    we install the OAS 3.01 on our system (NT 4.0 sr 4 Worstation).
    we start the AdminListener with:
    oswctl start ADMIN
    the listener starts sucessfully.
    trying accessing on the ADMIN-Page with the IE 4.0
    (http://[IP-adress]:8888)
    the following message occured:
    The request did not specify a valid virtual host.
    any idea ???
    Thank
    Martin
    null

    Dennis Bourgeois (guest) wrote:
    : Peter Siket (guest) wrote:
    : : Martin Behrmann (guest) wrote:
    : : : Hi,
    : : : we install the OAS 3.01 on our system (NT 4.0 sr 4
    : Worstation).
    : : : we start the AdminListener with:
    : : : oswctl start ADMIN
    : : : the listener starts sucessfully.
    : : : trying accessing on the ADMIN-Page with the IE 4.0
    : : : (http://[IP-adress]:8888)
    : : : the following message occured:
    : : : The request did not specify a valid virtual host.
    : : : any idea ???
    : : : Thank
    : : : Martin
    : : Hi Martin,
    : : we learned that OAS 3.01 only accepts hostnames. The only
    way
    : to
    : : enable communication is to supply a hosts-file with the
    : : appropriate entry. I don't know why but so it works.
    : : Peter
    : Martin,
    : I'm running OAS 4.0.8 but here is a thought... In 4.0.8 if you
    go
    : to the network properties for your listner and add the IP
    address
    : there then it works. I also found that if you are using
    : something like a Cisco domain controller to do load balancing
    : you
    : will want to list the IP address of the Domain Controler in
    there
    : as well.
    : Dennis
    If you access using the hostname, this will be passed onto the
    Application Server in addition to the IP address. The
    Application Server will use the hostname details to determine
    the listener files to use under the $ORACLE_HOME/ows path. This
    means you can more than one set of OAS files and therefore in
    theory service two different hostname addresses mapped to the
    same IP address.
    Nigel.
    null

  • Problem with DNS and/or Virtual Host (works from inside, not from outside)

    I am running several web sites (as virtual hosts) successfully on one Xserve (192.168.200), which are accessible internally and from the Internet (via forwarding port 80 on our firewall).
    Now I am trying to add another web site (newmini.domain.com), which however is running on a Mac mini (also on the same subnet as the Xserve) at 192.168.100. What I did is make an additional entry under the Xserve's DNS for the domain (domain.com) (+ Machine..., pointing to 192.168.0.100). (I also made the necessary changes to the Mac mini's httpd and hosts configuration--no problem there).
    Now, here's the strange thing: All computers on the subnet, whose DNS points to the Xserve, can see and browse newmini.domain.com fine. No problem. The computers ask the Xserve for the IP of the host in question, the Xserve says, "192.168.100", the request goes to the Mac mini, and it serves the web site as expected.
    But this doesn't happen if the request comes from the Internet. Instead of seeing the Mac mini, the client sees the default web site of the Xserve... So it appears that somewhere, the virtual host part of the HTTP request is lost between our firewall and the Xserve.
    Any ideas? Thanks.

    It's not going to.
    You say you've setup port forwarding on the firewall. Port forwarding only cares about the port number (80). It knows nothing about the nature of the request (e.g. the hostname that the web request is for). Therefore all extenal connections on port 80 get sent to the XServe. The newmini doesn't see the traffic at all.
    If you only have a single public IP address you can only forward port 80 traffic to a single machine. Your options are to either use a different port number, or configure the XServe to proxy the connection to the mini (so now the traffic goes router -> XServe -> Mini -> XServe -> router), although that might not do what you want since it still places load and dependencies on the XServe.

  • Apache virtual host with OSX Server?

    I have been running OSX Server for a while now, and just recently I decided to get McMyAdmin for my Minecraft server. The web client for McMyAdmin runs on port 8080, but I wanted it on port 80. I wanted to use it with my domain, so I just created a sub domain and pointed it to my server. The problem is that OSX Server apparently doesn't let me use port 80, even when websites are turned off. I decided to delete Server and just use plain apache. This worked until I realized that my website was only accessible locally. I have all the correct ports forwarded, etc. But I get the error:
    Response Error.
    Technical description:
    502 Bad Gateway - Response Error, a bad response was received from another proxy server or the destination origin server.
    when I try to connect from outside my network. This is probably just some simple thing I missed but it would be nice if someone could just point out what I did wrong here. Back to the point, I want to know how to run the proxy to my web client on port 8080 AND ALSO run OSX Server with or without apache virtualhost.
    Thanks in advance,
    Eamon

    Web is stupidly easy - Apache has extensive support for multiple virtual hosts in a single server and will happily support as many domains/hostnames as you can throw at it.
    Mail is a little trickier since it needs to hook into some kind of directory server to validate user addresses.
    Mac OS X's Open Directory does support this, but it's a little cumbersome (basically every user has to exist in the main Open Directory domain as well as having a secondary email address(es) in the other domain(s).
    This can get especially tricky when you have users with the same shortname in different domains - for example if you give [email protected] a secondary email address of [email protected] and you then get a new user [email protected], you can't give the third 'joe' the address 'joe' in Open Directory since that's already taken. This means he'll have to login using different credentials from his email address. Confused yet? You bet.
    If you're prepared to eschew Open Directory you can just use Postfix's built-in support for virtual hosting, but it's a little more complex to setup and support and is entirely command-line based (i.e. there's no GUI for setting it up or supporting it).
    So, for that reason you might be prepared to setup multiple virtual machines for each domain. It really depends on how much the domains are related (if at all).

  • Oracle9iAS R2 - Virtual Hosts with Portal and SSO with OIDDAS application

    Hi!
    I have installed a the machine with name minsk.discover.local. The machine have installed Infrastructure and Portal. The instalation is sucessfull and i work fine. But i have publish Portal to WEB with name intranet.discover.com.br. The Oracle describe:
    1 - Create the virtual hosts in SSO and PORTAL - OK
    2 - run ptlasst to create SSO Partners Applications - OK
    After this steps iwork fine with Portal and SSO, but when i click in portlet to create user to access the application OIDDAS, the Portal redirect to login page of SSO in address mct.com.br, the internal name, when then name not responde in the internet.
    I need a help!!!!
    Marcio Mesti

    I just spoke to the Oracle App server admins, the two servers in question are clustered.
    So my question changes slightly to:
    What is the best way to install and configure a webgate for clustered Oracle App servers with mulitple virtual hosts, that are residing behind a load balancer (Traffic Manager)?
    Thanks,
    Andy

  • Use require group in virtual host

    Hi,
    I have set up several virtual hosts in my middle tier, and configured them as partner applications so that OID/SSO can be used for authentication. It works fine, but the only supported method I can see is 'require valid-user' which allows any user in OID access to all virtual hosts. Does anyone know of a way around this using OID (not mod_auth). We want to allow users within a group access to individual virtual hosts.
    Thanks,
    Karen

    Hi there,
    I just wanted to clarify my question, has anyone been able to use group authentication using OID to restrict access to websites hosted using AS10g? My website is just plain html, but maybe someone has done something similar by adding a java wrapper to perform the authentication (that seems like overkill to me but maybe there is a more elegant workaround)?
    Thanks,
    Karen

  • How to create and access a Virtual Host on the J2EE WAS?

    Hello, I have searched through the Forums and help.sap.com and found a lot of information on how to set up a Virtual Host on the J2EE server but am having issues with it working.
    The goal is to provide a simple virtual host on the J2EE Portal server to host some static image and HTML files. Previously I had stored these files in the standard publicly accessible SAP J2EE folder location /usr/sap/<SID>/JCxx/j2ee/cluster/serverx/apps/sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/. This location is resolved to when using the URL <host>:50000 for example.
    The main issue here is that during Portal support pack applications this folder gets wiped out and we have to remember to save off any custom files and folders in this location and replace them.
    I would like to create a virtual host to store these static files (i.e., branding-image.jpg, etc...).
    I have run through the process of creating the virtual host both using Visual Administrator and <host>:50000/nwa but am not able to get the virtual host name to resolve properly.
    The following are the steps that I have taken. Let's assume the standard SAP portal (i.e., xSS, etc...) is running properly on <host>:50000.
    1. create virtual host via Visual Administrator/NWA called 'sapwebserver1' by using the Create Host option (takes on the attributes of the 'default' standard virtual host)
    2. change the root directory for this virtual server to a custom folder at E:/tmp/mimes (where E:/usr is where the J2EE files are all installed), no start files were set up and nothing else was changed in the new virtual host record, no permissions were changed on the /tmp/mimes folder from whatever the default Windows user permissions are normally set, I am using a local Windows  administrator account but I have not seen any reference in the help files or the examples that indicate that any specific permissions updates need to be made on the virtual host root folder
    3. restarted the J2EE server as well as the HTTP Provider service
    4. before updating the company DNS, I wanted to test this locally on the server and so have updated the server's local HOSTS file with a <host IP address>   sapwebserver1 entry
    5. from that server I can ping the sapwebserver1 virtual host name and it resolves properly to the machine's physical IP address
    According to all of the documentation and examples I have seen I should now be able to (from that server) launch a browser and access the static files in the virtual host by referring to http://sapwebserver1:50000/branding-image.jpg for example. This is not working and the browser just brings up a Cannot display the web page error in IE. By referring to the virtual host name sapwebserver1:50000 it's supposed to hit the J2EE server and based on the host name sapwebserver1 realize that it should resolve to the root directory E:/tmp/mimes. This is not happening. Just as a test I have created a copy of the 'default' virtual host and called it sapwebserver2, updated the local HOSTS file for this entry, and tried to see if that would work like the 'default' host. My expectation was that http://sapwebserver2:50000 would behave the same was as http://<host>:50000 but it too fails to resolve just like the sapwebserver1 virtual host refernce.
    Would anyone happen to have any pointers on what to do next? I just want a simple virtual host to be able to serve up some static images and files.
    Thanks for any insight or assistance you might be able to provide here.
    Graham

    This defeats the purpose of trying to centralize SAP-related web resources on the SAP server. Typically IIS/Apache or other non-SAP servers are under the control of IT and not the SAP BASIS group.
    We simply would like to have a centralized location to store static web files so that they are not overwritten during Portal support pack applications.

  • HOW TO DEFINE VIRTUAL HOST NAME IN HPIA64 + SAP R/3 ENTERPRISES 4.7

    Hi all,
    I am trying to install sap r/3 enterprises 4.7 with OS as HP-UX and Database as Oracle in a cluster environment.
    In cluster environment sap installation should be done on virtual hostname ( package id ). I'm using the env variable SAPINST_USE_HOSTNAME=<VIRTUAL HOSTNAME>.
    My cluster is running and I'm able to ping it from network, but at the time of SAP Installation my sapinst starts with the physical host name not with the virtual host name.
    What can be the solution ..?
    Thanks,
    Chandresh Pranami.

    Hi Chandresh,
    Try executing sapinst with virtual hostname.
    eg. ./sapinst SAPINST_USE_HOSTNAME=<VIRTUAL HOSTNAME>.
    This should work.
    -Pinkle

  • How can I connect to multiple WLS instances from a single Apache virtual host

    Configuration : WebLogic 5.1 SP8 & Apache
    I need to be able to have a configuration that looks something like this.
    www.company.com/x -> WL cluster01
    www.company.com/y -> WL cluster02
    In all the examples that I have been able to find they alway defines the the WL
    connection for the entire virtual host, but I need to be able to do it on a location
    basis is that possible?
    Thanks
    Jens Schutt

    httpd.conf:
    <VirtualHost 172.17.9.24:443>
    DocumentRoot "/www/X"
    ServerName qawebivesta.qa.livecapital.com
    ErrorLog /usr/local/apache/logs/qaweb1.error_log
    TransferLog /usr/local/apache/logs/qaweb1.access_log
    SSLEngine on
    SSLCipherSuite
    ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
    SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
    <Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
    </Files>
    <Directory "/usr/local/apache/cgi-bin">
    SSLOptions +StdEnvVars
    </Directory>
    SetEnvIf User-Agent ".*MSIE.*" \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0
    Debug ON
    DebugConfigInfo ON
    <Location /ivesta/>
    SetHandler weblogic-handler
    WebLogicHost qawlgc1
    WebLogicPort 7001
    </Location>
    <Location /TMPPhase2>
    SetHandler weblogic-handler
    WebLogicHost qawlgc1
    WebLogicPort 11001
    </Location>
    </VirtualHost>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /TMPPhase2 works fine, but when I try to access /ivesta I get a 404 from WebLogic
    "https://qawebtmp.qa.livecapital.com/ivesta/index.jsp?__WebLogicBridgeConfig
    Weblogic Apache Bridge Configuration parameters:
         WebLogic Cluster List:
              General Server List:
                   Host: 'qawlgc1' Port: 11001
              DefaultFileName: ''
              PathTrim: ''
              PathPrepend: ''
              ConnectTimeoutSecs: '10'
              ConnectRetrySecs: '2'
              HungServerRecoverSecs: '300'
              MaxPostSize: '-1'
              DynamicServerList: ON
              StatPath: false
              CookieName: WebLogicSession
              Idempotent: ON
              FileCaching: ON
              DisableCookie2Server: OFF
              QueryFromRequest: OFF
              Build date/time: Jun 25 2001 15:09:34
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    This should have been connecting to my 7001 instance not the 11001.
    Thanks
    Jens
    "Eric Gross" <[email protected]> wrote:
    What do you mean the wrong port? Post the complete output from
    WebLogicBridgeConfig as well as the URL you used.
    Also, paste the weblogic relative portions from your httpd.conf
    Thanks,
    Eric
    "jens" <[email protected]> wrote in message
    news:[email protected]...
    I also used ?__WebLogicBridgeConfig to verify that it did pick up thewrong port.
    Here is my build date for mod_wl.so in SP10
    Build date/time: Jun 25 2001 15:09:34
    Thanks
    Jens
    "Eric Gross" <[email protected]> wrote:
    Make sure you are using the latest plugin. As well, add parameter:
    DebugConfigInfo=ON and make a request with a query paramater of
    ?__WebLogicBridgeConfig and you should then see the build date/time.
    We can
    then see if you are indeed using the latest plugin.
    It is not a possibility to get the source.
    Regards,
    Eric
    "jens" <[email protected]> wrote in message
    news:[email protected]...
    And the solution where you put the WebLogic parm under location
    the
    last
    location
    over rule the previous.
    I have also tried to upgrade my plug-in from SP8 to SP10 but that
    didn't
    make
    any difference either.
    Is it possible to get the source code for the plug-in, I'm afraid
    that
    it
    don't
    follow put's all it's parm's a the vhost level no matter where in
    the
    conf
    file
    they are placed.
    HELP
    Jens
    "Eric Gross" <[email protected]> wrote:
    Yu is correct.
    Here is another way to do it as well:
    MatchExpression /x
    WebLogicCluster=server1:port,server2:port|PathTrim=/x
    MatchExpression /yWebLogicCluster=server3:port,server4:port|PathTrim=/y
    The general syntax for this would be:
    MatchExpression exp name=value|name=value
    Where exp=Mime type(*.jsp) or exp=/x(path)
    The next argument in the list is a pipe(|) delimited list ofname=value
    pairs (ie: WebLogicHost, WebLogicPort, WebLogicCluster, PathTrim,
    PathPrepend, etc..).
    Hope this helps.
    Regards,
    Eric
    "Yu Tian" <[email protected]> wrote in message
    news:[email protected]...
    Hi Jens,
    I think you can proxy by ppath.
    <Location /x>
    SetHandler weblogic-handler
    WebLogicCluster cluster1
    </Location>
    <Location /y>
    SetHandler weblogic-handler
    WebLogicCluster cluster2
    </Location>
    thanks
    Yu
    "Jens" <[email protected]> wrote in message
    news:[email protected]...
    Configuration : WebLogic 5.1 SP8 & Apache
    I need to be able to have a configuration that looks something
    like
    this.
    www.company.com/x -> WL cluster01
    www.company.com/y -> WL cluster02
    In all the examples that I have been able to find they alway
    defines
    the
    the WL
    connection for the entire virtual host, but I need to be able
    to
    do it
    on
    a location
    basis is that possible?
    Thanks
    Jens Schutt

  • How to configure multiple virtual hosts for the same context root /

    Hi,
    I am using Glassfish V1 U1 - b14 on Solaris.
    I am trying to configure two applications to be mapped to the / root context, each one in its own virtual host.
    Two things I have noticed:
    1. I have to manually add virtual-hosts="hostId" in domain.xml/application-ref ... looks like just simply deploying the app does not do that although the application is set as default for its particular virtual host. Is this a bug?
    2. Although I have set for each virtual host the default web-app correctly, and they both respond fine, I cannot map both of them to the / context. The second application (chronologically deployed) does not respond when called with the / context ....
    Any ideas? Is this a bug again?
    Regards,
    Rares
    Message was edited by:
    raresp

    Wow, that's a shame. All mighty Application Server and two different apps on two different virtual hosts are considered ambiguous to have the same context root definition.... Fair play to Tomcat and 90% of the rest of servlet containers!
    In my case I have the same EAR we are planning to deploy to many (up to 30) virtual hosts. Faking different context roots for each deployment will bring unnecessary overheads...
    Should I file a bug or feature request?
    Thanks again for your answer, although you're basically saying it is not possible I will wait and look a while for a possible solution before bringing this topic to a conclusion.

  • ICal Error: "No virtual host found for iCal Service" - Help!

    Trying to set up iCal on OS X Server 10.5.6
    Server is up and running and successfully providing web services on its FQDN. Server is not currently used to support network users / services, but as and when it does it will be the Master Opendirectory server.
    I have created a couple of test accounts on the server (simply in the Users group) and enabled both for Calendar Access.
    I have provided the details of the FQDN on the iCal page, and checked that the default port (8008) has been opened in the firewall.
    In web services there is one virtual domain (using name based virtual server) and the default domain in operation. Both appear to be functioning as would be expected.
    When I click on 'start service' for iCal, I get this error.
    "No virtual host found for iCal service"
    I cannot find any information about this in iCal manual, or online documentation. Can anyone here provide pointer to where this information is, or what it means?
    Would be most grateful.

    Hey there,
    See if any of the solutions provided in either of these older threads can steer you in the right direction.
    http://discussions.apple.com/thread.jspa?threadID=1201737
    http://discussions.apple.com/thread.jspa?threadID=1242823&start=0&tstart=-3
    B-rock

  • How to configure virtual hosts and separate tiers

    The configuration we require with WLS must:
    1) provide virtual hosts that can operate under their own SSL environments (some one way, some two way, with different certs)
    2) perform all XML parsing of received message objects in the web layer in order to (a) offload CPU from ejb layer to web layer and (b) prevent any malformed message from penetrating to the ejb layer - reject in the web layer
    3) the web tier must be physically separate from the ejb tier - an integrated WLS server is not acceptable for security reasons
    4) the ejb layer must be clusterable
    5) DNS round robin is sufficient protection for web layer failover
    I do not see clearly how to accomplish this configuration using the WLS suite. Would appreciate guidance on this prior to plunking down big dollars for licenses.
    Thanks

    The configuration we require with WLS must:
    1) provide virtual hosts that can operate under their own SSL environments (some one way, some two way, with different certs)
    2) perform all XML parsing of received message objects in the web layer in order to (a) offload CPU from ejb layer to web layer and (b) prevent any malformed message from penetrating to the ejb layer - reject in the web layer
    3) the web tier must be physically separate from the ejb tier - an integrated WLS server is not acceptable for security reasons
    4) the ejb layer must be clusterable
    5) DNS round robin is sufficient protection for web layer failover
    I do not see clearly how to accomplish this configuration using the WLS suite. Would appreciate guidance on this prior to plunking down big dollars for licenses.
    Thanks

  • [SOLVED] XAMPP 1.8.0 + virtual hosts = 403 access forbidden

    Hello, all. I am happy migrant from ubuntu to arch, but have problem, which i can't solve myself.
    I need to setup xammp for local development.
    My actions
    Install last xampp from aur
    Run lampp
    Open locahost, there is "xampp welcome page"
    Open localhost/phpmyadmin and get
    xampp new xampp security concept, blablabla
        Okay, add "Require all granted" in httpd-xampp.conf
    <Directory "/opt/lampp/phpmyadmin">
            AllowOverride AuthConfig Limit
            #Order allow,deny
            #Allow from all
            Require all granted
        </Directory>
        phpmyadmin came back
    I need virtual hosts, structure will be
    /home/$USER/Sites/{site1/index.html,site2,site3 etc.}
    Uncomment include vhosts in httpd.conf
    Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf
    Clear httpd-vhosts.conf and put there
    <VirtualHost *:80>
            DocumentRoot "/home/shara/Sites/mysite"
            ServerName mysite
            ServerAlias www.mysite
            ErrorLog "/home/shara/Sites/mysite-error_log"
            CustomLog "/home/shara/Sites/mysite-access_log" common
        </VirtualHost>
    Add new host in /etc/hosts
    127.0.0.1 mysite
    Set "User shara" and "Group www" in httpd.conf
    <IfModule unixd_module>
    User shara
    # commented out by lampp compatibility check
    #Group nogroup
    Group www
    </IfModule>
    Add group "groupadd www"
    Add user to group "usermod -aG www shara"
    Change htdocs group "chgrp -R www /opt/lampp/htdocs"
    Change sitedir group "chgrp -R www /home/shara/Sites"
    Change htdocs chmod "chmod 2775 /opt/lampp/htdocs"
    Change sitedir chmod "chmod 2775 /home/shara/Sites"
    Run xampp
    Open "mysite"
    Access forbidden Error 403
    Open "localhost"
    Access forbidden Error 403
    Open "localhost/phpmyadmin"
    Existing configuration file (./config.inc.php) is not readable.
    Oookay
        Set chmod 664 to /opt/lampp/phpmyadmin/config.inc.php
    Open "localhost/phpmyadmin"
        phpmyadmin works, but nothing else
        XAMPP 1.7 worked perfect with this config. Where is the FAIL?
    Last edited by Shara (2012-09-04 12:18:48)

    I did it.
    phpmyadmin new security problem solved with set passwords with /opt/lampp/lampp security (NO require all granted in httpd-xampp.conf)
    virtual hosts 403 problem solved with
    New instruction:
    *User name "shara" and group "www" is myown, you need to set yours
    INSTALL
    yaourt -S xampp
    /opt/lampp/lampp security
    VIRTUAL HOSTS
    Uncomment including vhosts in "/opt/lampp/etc/httpd.conf" and set "User shara" and "Group www"
    Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf
    <IfModule unixd_module>
    User shara
    # commented out by lampp compatibility check
    #Group nogroup
    Group www
    </IfModule>
    Clear "/opt/lampp/etc/extra/httpd-vhosts.conf" and add
    <VirtualHost *:80>
            DocumentRoot "/home/shara/Sites/mysite"
            ServerName mysite
            ErrorLog "/home/shara/Sites/mysite/mysite-error.log"
            CustomLog "/home/shara/Sites/mysite/mysite-access.log" common
        <Directory "/home/shara/Sites/mysite">
           Require all granted
        </Directory>
    </VirtualHost>
    Add new host in /etc/hosts
    127.0.0.1 mysite
    Add group
    groupadd www
    Add user to group
    usermod -aG www shara
    Change htdocs group
    chgrp -R www /opt/lampp/htdocs
    Change sitedir group
    chgrp -R www /home/shara/Sites
    Change htdocs chmod
    chmod 2775 /opt/lampp/htdocs
    Change sitedir chmod
    chmod 2775 /home/shara/Sites
    Set phpmyadmin config chmod
    chmod 664 /opt/lampp/phpmyadmin/config.inc.php
    Run lampp
    sudo /opt/lampp/lampp start
    WIN ^_^
    May i need to write archwiki manual?
    Last edited by Shara (2013-02-28 17:07:22)

  • [SOLVED] I can't get virtual hosts working. What's wrong?

    What I've decided to do is try to set up each domain name in the user folder to whom it belongs (for example: /home/username/somedomain.com/htdocs). I can't get it to work though. I keep getting an error saying that there's no index file (although there is) or that the location isn't readable (although it is). I'm trying to make it so that if the domain name matches with a virtual host section in httpd-vhosts.conf that a specific DocumentRoot will be loaded for that domain, etc. But, if the domain name points to my server but doesn't match, then I want the default location to work. I can't seem to make this work.
    This is my http.conf:
    ServerRoot "/etc/httpd"
    Listen 80
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_anon_module modules/mod_authn_anon.so
    LoadModule authn_dbd_module modules/mod_authn_dbd.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule file_cache_module modules/mod_file_cache.so
    LoadModule cache_module modules/mod_cache.so
    LoadModule disk_cache_module modules/mod_disk_cache.so
    LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule dbd_module modules/mod_dbd.so
    LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule reqtimeout_module modules/mod_reqtimeout.so
    LoadModule ext_filter_module modules/mod_ext_filter.so
    LoadModule include_module modules/mod_include.so
    LoadModule filter_module modules/mod_filter.so
    LoadModule substitute_module modules/mod_substitute.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule ldap_module modules/mod_ldap.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule log_forensic_module modules/mod_log_forensic.so
    LoadModule logio_module modules/mod_logio.so
    LoadModule env_module modules/mod_env.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule ident_module modules/mod_ident.so
    LoadModule usertrack_module modules/mod_usertrack.so
    LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule version_module modules/mod_version.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    LoadModule ssl_module modules/mod_ssl.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule status_module modules/mod_status.so
    LoadModule autoindex_module modules/mod_autoindex.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule info_module modules/mod_info.so
    LoadModule suexec_module modules/mod_suexec.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule cgid_module modules/mod_cgid.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule rewrite_module modules/mod_rewrite.so
    #CUSTOM
    LoadModule php5_module modules/libphp5.so
    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
    User http
    Group http
    </IfModule>
    </IfModule>
    ServerAdmin [email protected]
    DocumentRoot "/srv/http/default/htdocs"
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    </Directory>
    <Directory "/srv/http/default/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    <IfModule dir_module>
    DirectoryIndex index.php,index.html
    </IfModule>
    <FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
    </FilesMatch>
    ErrorLog "/var/log/httpd/error_log"
    LogLevel warn
    <IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
    # You need to enable mod_logio.c to use %I and %O
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog "/var/log/httpd/access_log" common
    </IfModule>
    <IfModule alias_module>
    ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    #Scriptsock /var/run/httpd/cgisock
    </IfModule>
    <Directory "/srv/http/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    DefaultType text/plain
    <IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    </IfModule>
    # Multi-language error messages
    Include conf/extra/httpd-multilang-errordoc.conf
    # Fancy directory listings
    Include conf/extra/httpd-autoindex.conf
    # Language settings
    Include conf/extra/httpd-languages.conf
    # User home directories
    #Include conf/extra/httpd-userdir.conf
    # Real-time info on requests and configuration
    #Include conf/extra/httpd-info.conf
    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    #Include conf/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
    # Various default settings
    Include conf/extra/httpd-default.conf
    #CUSTOM
    Include conf/extra/php5_module.conf
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    And here's my httpd-vhosts.conf:
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerName 45.117.5.40
    ServerAdmin [email protected]
    DocumentRoot "/srv/http/default/htdocs"
    ErrorLog "/srv/http/default/log/error_log"
    CustomLog "/srv/http/default/log/access_log" common
    </VirtualHost>
    <VirtualHost *:80>
    ServerName somedomain.com
    ServerName www.somedomain.com
    ServerAdmin [email protected]
    DocumentRoot "/home/normaluser/somedomain.com/htdocs"
    ErrorLog "/home/normaluser/somedomain.com/log/error_log"
    CustomLog "/home/normaluser/somedomain.com/log/access_log" common
    </VirtualHost>
    So, for example, I want it to be so that if I visit http://45.117.5.40 that it'll show the stuff ftom /srv/http/default/htdocs but if the domain name matches somedomain.com then I want the server to show the content from /home/normaluser/somedomain.com/htdocs.
    What currently happens is that if I visit http://45.117.5.40 or somedomain.com, they both show the same content from /srv/http/default/htdocs.
    If I comment out the first VirtualHost section, then everything stops working and I see the default "Access forbidden!" message.
    What am I doing wrong?
    Last edited by trusktr (2012-04-13 06:15:41)

    I fixed it. In case any newbs come across this, I had to add a new <Directory> section for the DocumentRoot of the virtual host. Simply adding the VirtualHost entry in the vhosts file isn't enough.
    For example, for the "somedomain.com" vhost in the example above to work, I added this to http.conf:
    #This must match with the same location as DocumentRoot in httpd-vhost.conf.
    <Directory "/home/normaluser/somedomain.com/htdocs">
    #Put whatever directives you want in here
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    Let me know if you need any clarification.
    Last edited by trusktr (2012-04-13 06:16:02)

  • Working with virtual host & hosts files on a local network

    I'm setting up a small local web and production server here in my office running Leopard.
    I'm setting up virtual hosts for users on the network to review and comment on websites in development. Ideally they'd access it as:
    host1.webserver.local
    host2.webserver.local
    host3.webserver.local
    Problem is, users on the network can see webserver.local just fine, but the subdomains need to be registered with hosts file on each computer.
    Is there a way I can manage all computers hosts file easily? I was thinking of an SVN repository, but this still requires going to each computer to update the file.
    Any suggestions here would be great.
    Thanks
    Rich

    Hi jscher2000
    Thank you for your interest.
    I am using "manual prxoy configuration" option in firefox with port 8080. I have tried the option of "Use system proxy settings" but it doesn't help.

Maybe you are looking for