服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

configuration了与我的用户目录中的文件夹的sym-linkconfiguration的Apache虚拟主机失败,出现403 Forbidden

我确信有人问过或回答过,但我的search没有帮助我太多,所以… 我在我的Linux机器上安装了Eclipse IDE(LM13),工作空间文件夹位于@ /home/user/projects/workspace 我有Apache的安装和设置,与各种虚拟主机,所有这些文件夹下的Web根/var/www/…下的某个地方/var/www/… 我遇到的问题是,我为Eclipse Workspace中的项目configuration的虚拟主机无法被Apache访问,因此给了我“403 – 禁止 – 您没有权限访问/ on这个服务器“。 首先,我尝试了一个“正常”的vhostconfiguration,然后尝试使用链接到Eclipse工作区中的项目文件夹的web-root @ /var/www/freelance/project下的SymLink 我已经尝试了FollowSymLinks和SymLinksIfOwnerMatch在<directory …>部分下的选项指令,但我仍然无法在浏览器中使用Apache访问它! 任何人都可以向我解释我怎样才能使这个设置工作? 我还没有尝试使用mod_userdir ,或者在我的/home文件夹上设置文件权限,以允许访问Apache,因为这两者似乎都不是有利的。 有另一种方法吗? 这是我的虚拟主机configuration: # Apache VHOST config for IAGD <VirtualHost my.iagd:80> NameVirtualHost my.iagd:80 ServerAlias *.my.iagd # ServerAdmin username@domain DocumentRoot /var/www/freelance/iagd <Directory /var/www/freelance/iagd/> Options FollowSymLinks SymLinksIfOwnerMatch AllowOverride All Order deny,allow Deny from all Allow from 127.0.0.1 </Directory> […]

SQL Server 2008超时过期

我问了Stackoverflow下面的问题没有任何答案,但是,有人build议我问serverfault上的问题也。 希望有人能帮助。 我最近将ASP.Net MVC 3 Web应用程序(用于数据持久性的entity framework4.1)发布到实时服务器。 该应用程序位于一个Web服务器上,而数据库(SQL Server 2008)位于另一个单独的服务器上。 这个网站只用了几天的时间,只有很less的命中,因此数据库表中包含的logging很less(最多10-20个)。 我也有ELMAH(错误logging模块和处理程序的ASP.NET)集成到网站,我已收到以下错误的几个实例 System.Data.SqlClient.SqlException:超时过期。 操作完成之前超时的时间或服务器没有响应。 下面显示了由ELMAH提供的全部细节 System.Data.EntityException:底层提供程序在打开时失败。 —> System.Data.SqlClient.SqlException:超时过期。 操作完成之前超时的时间或服务器没有响应。 在System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj,UInt32错误)System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()System.Data.SqlClient.SqlInternalConnection.OnError(SqlExceptionexception,布尔breakConnection) .SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult,TdsParserStateObject stateObj)在System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()在System.Data.SqlClient.TdsParser.ConsumePreLoginHandshake(布尔encryption,布尔trustServerCert,布尔&marsCapable)在System.Data。 SqlClient.TdsParser.Connect(ServerInfo serverInfo,SqlInternalConnectionTds connHandler,布尔ignoreSniOpenTimeout,Int64计时器展开,布尔encryption,布尔trustServerCert,布尔integratedSecurity)在System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo,stringnewPassword,布尔ignoreSniOpenTimeout,TimeoutTimer超时, SqlConnection拥有对象)在System.Data.S (SqlConnection拥有对象,超时计时器超时,SqlConnectionString连接选项,SQL Server数据库连接选项),qlClient.SqlInternalConnectionTds.LoginWithFailover(布尔useFailoverHost,ServerInfo primaryServerInfo,stringfailoverHost,stringnewPassword,布尔redirectedUserInstance,SqlConnection拥有对象,SqlConnectionString连接选项,TimeoutTimer超时)在System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions选项,System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity身份,SqlConnectionString connectionOptions,对象providerInfo,stringnewPassword,SqlConnection拥有对象,布尔redirectedUserInstance)stringnewPassword,布尔redirectedUserInstance)对象poolGroupProviderInfo,DbConnectionPool池,DbConnection拥有连接)在System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection,DbConnectionPoo (DbConnection拥有对象)在System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection拥有对象)在System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection拥有对象)System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection拥有对象) .Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection,DbConnectionFactory connectionFactory)在System.Data.SqlClient.SqlConnection.Open()在System.Data.EntityClient.EntityConnection。 OpenStoreConnectionIf(布尔openCondition,DbConnection storeConnectionToOpen,DbConnection originalConnection,stringexceptionCode,string企图操作,布尔和closeStoreConnectionOnFailure)—结束内部exception堆栈跟踪—在System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(布尔openCondition,DbConnection storeConnectionToOpen,DbConnection要么 在System.Data.EntityClient.EntityConnection.Open()在System.Data.Objects.ObjectContext.EnsureConnection()在System.Data.Objects.ObjectQuery 1.GetResults(Nullable 1 forMergeOption 1.GetResults(Nullable iginalOption,String exceptionCode,String attemptedOperation,Boolean&closeStoreConnectionOnFailure) )在System.Data.Objects.ObjectQuery 1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() at System.Collections.Generic.List […]